Amend latest commit on verified emailing
This commit is contained in:
parent
1474fc53a3
commit
4ae0941f43
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ def activate(v):
|
|||
user.email = email
|
||||
user.is_activated = True
|
||||
|
||||
if not any(b.badge_id == 2 for b in user.badges):
|
||||
if not user.has_badge("verified_email"):
|
||||
mail_badge = Badge(user_id=user.id, badge_id="verified_email")
|
||||
g.db.add(mail_badge)
|
||||
g.db.flush()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue