Flagsmith / Flagsmith/flagsmith

The Email Activation Flow cannot be completed because of invalid confirmation url

Open
#2,352 1 comment 1 reaction 1 assignee Claimed by @dabeeeenster View on GitHub
bug
Dominant language
Python
Stars
6.6k
Forks
567
Avg merge
1d 13h
Merged PRs (30d)
121

Description

**Describe the bug**

I was experimenting with the `ENABLE_EMAIL_ACTIVATION` environment variable with self-hosted and I do receive an activation email to confirm my email address. Once I got the domain set properly in the `django_site` table the link pointed to the correct domain, however the front end route doesn't appear to be valid. The front end displayed the "Not Found" page. The link in the email was http://{{my-domain}}/activate/nw/{{unique-id-code}}. I looked through the frontend routes and didn't find one that matched this convention.

**To Reproduce**

Steps to reproduce the behavior:

1. Set up self-hosted with valid SMTP provider
2. Set `ENABLE_EMAIL_ACTIVATION` environment variable to `true`
3. Update `django_site` table to the appropriate domain
4. Register a new user with valid email address
5. Receive the Activation email used to confirm the email address of the new user
6. Click on the "Activate Flagsmith Account" link within the email
7. Flagsmith UI displays the "Not Found" page indicating an invalid route.

**Expected behavior**

Clicking the "Activate Flagsmith Account" performs the necessary actions to activate the newly registered account and either routes to the projects view or to the login view to complete the login process.

**Screenshots**
![image](https://github.com/Flagsmith/flagsmith/assets/20882449/12d52270-cc26-429c-b41e-669da27fc600)
The email sent from Flagsmith to confirm the email address.

![image](https://github.com/Flagsmith/flagsmith/assets/20882449/8669ae9d-8b6f-4bc5-87c4-1a46404377c9)
The "Not Found" page displayed after clicking the link inside of the email.

**How are you running Flagsmith?**

- [ ] Self Hosted with Docker
- [X] Self Hosted with Kubernetes
- [ ] SaaS at flagsmith.com
- [ ] Some other way

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.