Move email verification from client to server #4482
Comments
|
TODO (first attempt at this):
After:
|
|
Re-opening since we removed server side verification due to rate-limiting. |
|
I can imagine us getting around the rate limiting by using a shared secret between the customs and content servers. We also have to consider how to handle marketing email-opt ins. A flag is sent to /verify_email when doing client side verification, but AFAICT we lost this with server side verifiation. |
Here's the current logic "front-end" logic:
fxa-content-server/app/scripts/lib/fxa-client.js
Line 338 in 9cbf5d9
and https://github.com/mozilla/fxa-js-client/blob/746abf79745d9825c1f0f180d15519e1983ca95f/client/FxAccountClient.js#L269
The server should perform the same request as the fxa-js-client request above ^. (use the auth url from config, stored in https://github.com/mozilla/fxa-content-server/blob/master/server/lib/configuration.js#L155 )
Ref: #4476 (comment)
The text was updated successfully, but these errors were encountered: