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

Unable to change email twice #451

Closed
fpellet opened this issue Apr 12, 2024 · 2 comments
Closed

Unable to change email twice #451

fpellet opened this issue Apr 12, 2024 · 2 comments
Labels

Comments

@fpellet
Copy link
Contributor

fpellet commented Apr 12, 2024

Hello,

With the latest version, when the user changes email and validates (with the 2 emails), their profile is updated.
However, when they try to change their email again, they get the error "Your email does not match any of the approved domains." (msgcode.9).
On my configuration, there's no whitelist and I get the same thing even though it's the same domain as the previous address.

This seems to be an impact of the 8dfcaaf change, but I have not found the reason for this error.

@fpellet
Copy link
Contributor Author

fpellet commented Apr 12, 2024

I think the reason is that confirmationTimestamp is not reset.
So I see two possibilities:

  • either there is a desire to set a ratelimit (6h), but in this case the error message is not correct
  • or it's an error, and you need to reset confirmationTimestamp

@albogdano
Copy link
Member

Yes, I think the error message is incorrect because of the fact that you can only change the email once every 6 hours.
It's a security feature and there should be a clear error message in the Scoold logs. I will mark this a a bug and fix it as soon as I can.

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

No branches or pull requests

2 participants