-
Notifications
You must be signed in to change notification settings - Fork 1
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
Rework email confirmations #44
base: main
Are you sure you want to change the base?
Conversation
4eced47
to
888578d
Compare
cf07157
to
4eced47
Compare
9331606
to
526fd6a
Compare
user = deserializer.save() | ||
|
||
if self.email_confirmation_class is None: | ||
raise MissingSetting('email_confirmation_class') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check could be moved to SignupView.as_view, so that the problem is visible when the site starts rather than during the first request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better: #52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clean! Je crois que je ferais le changement pour que la validation se fasse dans la méthode as_view()
immédiatement, mais sinon c'est cool !
Agreed on doing this in the same PR! |
except EmailConfirmation.DoesNotExist: | ||
msg = _('Invalid link') | ||
except EmailConfirmation.IsExpired: | ||
# FIXME it's not possible to register with the same email |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
address this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should check for expired confirmation, but it shouldn't be an error related to a duplicate email, tho? A user shouldn't be able to create an account with an email related to another email, tho ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok so the plan is:
|
Post-release merge
Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
This has been open too long. I think the new endpoint should be another ticket. |
Fixes #38