Wrong Activation Link mailed to user on re-requesting activation link
Scenario:
- Registered via email, but didn't activated for two days.
- After two days, trying to click on activation link, the activation link failed. (at url https://agora-frontend.herokuapp.com/activate/a07dc585-a3f1-49d8-8bcc-a48fd8be2d28). Message: Account activation error. Please enter user name to receive new link
- Entered my email address, and waited for the activation link. (The mail was received by me, but no response on UI side and loading state was on)
- The email received now, was taking me to the backend url
http://agora-rest-api.herokuapp.com/api/v1/account/activate/91f54630-4650-413a-89af-3733d2dcd154
rather than the expected frontend url athttps://agora-frontend.herokuapp.com/activate/xxx-xxx-xxx
. The page rendered the json response (perhaps, as designed by the scala backend). See the attached picture 1. - After 2 hours, at the same url, the json updated showing the error message. See attached pic 2 (I think this was expected as the above backend url had activated my email already and I can login normally now)
Expected Behaviour:
- The activation url mailed on reactivation should have been redirected to the frontend url rather than the backend url.
- The loading state of the activate account component
/src/app/components/activate-account/activate-account.component.html
reflect the response correctly.
Please share your opinions regarding this, as I am unsure whether this is the frontend issue or something cooked wrong at the scala web api end.