From dc1c8881b3df17772cca89fa98acc0c03159753a Mon Sep 17 00:00:00 2001 From: Oguz Kocer Date: Fri, 18 Oct 2019 12:53:33 -0400 Subject: [PATCH] Add signup_flow_name parameter to auth/sendSignupEmail call --- .../android/fluxc/network/rest/wpcom/auth/Authenticator.java | 4 ++++ .../java/org/wordpress/android/fluxc/store/AccountStore.java | 1 + 2 files changed, 5 insertions(+) diff --git a/fluxc/src/main/java/org/wordpress/android/fluxc/network/rest/wpcom/auth/Authenticator.java b/fluxc/src/main/java/org/wordpress/android/fluxc/network/rest/wpcom/auth/Authenticator.java index 0ab09d3356..2045405b1e 100644 --- a/fluxc/src/main/java/org/wordpress/android/fluxc/network/rest/wpcom/auth/Authenticator.java +++ b/fluxc/src/main/java/org/wordpress/android/fluxc/network/rest/wpcom/auth/Authenticator.java @@ -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() { @Override diff --git a/fluxc/src/main/java/org/wordpress/android/fluxc/store/AccountStore.java b/fluxc/src/main/java/org/wordpress/android/fluxc/store/AccountStore.java index 0a33ac7782..123cd2590c 100644 --- a/fluxc/src/main/java/org/wordpress/android/fluxc/store/AccountStore.java +++ b/fluxc/src/main/java/org/wordpress/android/fluxc/store/AccountStore.java @@ -80,6 +80,7 @@ public static class AuthEmailPayload extends Payload { public AuthEmailPayloadFlow flow; public AuthEmailPayloadSource source; public String emailOrUsername; + public String signupFlowName; public boolean isSignup; public AuthEmailPayload(String emailOrUsername, boolean isSignup, AuthEmailPayloadFlow flow,