Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ability to Confirm Email Verification via API #369

Closed
lizhuomeng71 opened this issue Apr 19, 2018 · 0 comments
Closed

Add Ability to Confirm Email Verification via API #369

lizhuomeng71 opened this issue Apr 19, 2018 · 0 comments

Comments

@lizhuomeng71
Copy link

Object:
In a scenario where an APP run complete depend on Barong and Peatio API, An email verification api endpoint is missing for end to end flow.

Flow:
0. An React App is set at www.example.com interact with barong and peatio via API (feasible with current code)
0. Barong is config to use www.example.com as domain for all email (feasible with current code)

  1. Customer register in react front end via post /account API (feasible with current code)
  2. An Email is sent to customer inbox. with the confirmation link as https://www.example.com/accounts/confirmation?confirmation_token=dtTrFToFZ9EDuA4nxQTs (feasible with current code)
  3. React App received it, sent an API call to http://barong/api/v1/accounts/confirmation?confirmation_token=dtTrFToFZ9EDuA4nxQTs (API currently not exist)
  4. verification is either approved or rejected

API:
/accounts/confirmation
Param
[confirmation_token]
Response
200,
401, invalid token
422, already verified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants