Skip to content

Commit

Permalink
Merge pull request #1406 from wordpress-mobile/issue/add-signup-flow-…
Browse files Browse the repository at this point in the history
…name-param-to-auth-email

Add signup_flow_name parameter to /auth/send-signup-email
  • Loading branch information
AmandaRiu authored Oct 18, 2019
2 parents 69bd2a9 + dc1c888 commit d116142
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ public void sendAuthEmail(final AuthEmailPayload payload) {
params.put("source", payload.source.toString());
}

if (payload.signupFlowName != null && !TextUtils.isEmpty(payload.signupFlowName)) {
params.put("signup_flow_name", payload.signupFlowName);
}

WPComGsonRequest request = WPComGsonRequest.buildPostRequest(url, params, AuthEmailWPComRestResponse.class,
new Response.Listener<AuthEmailWPComRestResponse>() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public static class AuthEmailPayload extends Payload<BaseNetworkError> {
public AuthEmailPayloadFlow flow;
public AuthEmailPayloadSource source;
public String emailOrUsername;
public String signupFlowName;
public boolean isSignup;

public AuthEmailPayload(String emailOrUsername, boolean isSignup, AuthEmailPayloadFlow flow,
Expand Down

0 comments on commit d116142

Please sign in to comment.