-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add user settings fields for email verification #4938
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4938 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 548 548
Lines 25929 26144 +215
==========================================
+ Hits 25929 26144 +215
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
temba/orgs/models.py
Outdated
@@ -341,6 +341,8 @@ class UserSettings(models.Model): | |||
last_auth_on = models.DateTimeField(null=True) | |||
external_id = models.CharField(max_length=128, null=True) | |||
verification_token = models.CharField(max_length=64, null=True) | |||
email_verified = models.BooleanField(default=False) |
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.
maybe it would be useful to have different states here like UNVERIFIED, VERIFIED, FAILING ?
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.
Okay, i can change that field
a3623dd
to
2040955
Compare
STATUS_FAILING = "F" | ||
STATUS_CHOICES = ( | ||
(STATUS_VERIFIED, _("Verified")), | ||
(STATUS_UNVERIFIED, _("Unverified")), |
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.
Very minor but feels like STATUS_UNVERIFIED should come first as that's the default state
2040955
to
a5184cb
Compare
No description provided.