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

Add user settings fields for email verification #4938

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

norkans7
Copy link

No description provided.

@codecov
Copy link

codecov bot commented Oct 31, 2023

Codecov Report

Merging #4938 (a5184cb) into main (fb7f2ec) will not change coverage.
Report is 9 commits behind head on main.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##              main     #4938    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files          548       548            
  Lines        25929     26144   +215     
==========================================
+ Hits         25929     26144   +215     
Files Coverage Δ
temba/orgs/models.py 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@@ -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)
Copy link
Member

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 ?

Copy link
Author

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

@norkans7 norkans7 force-pushed the email-verification branch 2 times, most recently from a3623dd to 2040955 Compare October 31, 2023 14:46
STATUS_FAILING = "F"
STATUS_CHOICES = (
(STATUS_VERIFIED, _("Verified")),
(STATUS_UNVERIFIED, _("Unverified")),
Copy link
Member

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

@rowanseymour rowanseymour merged commit f9a76bc into main Oct 31, 2023
5 checks passed
@rowanseymour rowanseymour deleted the email-verification branch October 31, 2023 18:01
@github-actions github-actions bot locked and limited conversation to collaborators Oct 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants