Skip to content

Email change links to 404 #9066

Open
Open
@supertassu

Description

@supertassu

Describe the bug
When a user changes an email, the verification link leads to a 404 page.

To Reproduce
Steps to reproduce the behavior:

  1. On an existing account, go to https://eventyay.com/account/profile
  2. Change your email address to something else and submit the form
  3. Open the email sent to the new address
  4. Click on the link to verify the email address (https://eventyay.com/email/verify?token=...)
  5. Observe a 404 page

Expected behavior
The email address is confirmed and the user sees a message confirming everything went fine.

Stacktrace

Additional details (please complete the following information):

  • OS: [e.g. MacOS, Ubuntu, CentOS]
  • Python Version [e.g. 3.5, 3.6]
  • HEAD Commit hash [e.g. 4629c62]

Additional context

This seems to be coming from here:

link = make_frontend_url('/email/verify', {'token': hash_})

and if I understand https://github.com/fossasia/open-event-frontend/blob/4477d408b27c026ddac6015b17a74a5370914b55/app/router.js#L302 correctly the correct url should be https://eventyay.com/verify?token=...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions