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

How to update the account_emailaddress model ? #416

Closed
R-P-H opened this issue Jul 1, 2022 · 2 comments
Closed

How to update the account_emailaddress model ? #416

R-P-H opened this issue Jul 1, 2022 · 2 comments
Labels
support-request A user needs help getting things working

Comments

@R-P-H
Copy link

R-P-H commented Jul 1, 2022

Hi, how can I access the built in email_addresses model ? I would like to do the following:

  1. Through my custom create_superuser class I need to create an entry in account_emailaddress else I get an email not verified error.

  2. When a user updates their email I would like to also update their email in the account_emailaddress model and set verified back to false.

Is this possible ?

@R-P-H R-P-H changed the title How to update the email_addresses model ? How to update the account_emailaddress model ? Jul 1, 2022
@iMerica iMerica added the support-request A user needs help getting things working label Jul 17, 2022
@iMerica
Copy link
Owner

iMerica commented Jul 17, 2022

You can do this by overriding the classes in this library.

@iMerica iMerica closed this as completed Jul 17, 2022
@Routhinator
Copy link
Contributor

Can we reopen this and mark as a docs task? Would be good to document this as migrating from another auth solution that just uses the email field on the usermodel requires this to be fixed somehow, otherwise posting a new user email address to the /auth/user/ endpoint causes the user to be locked out with no way to verify the new email as there is no entry created in the account_emailaddress table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support-request A user needs help getting things working
Projects
None yet
Development

No branches or pull requests

3 participants