mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 22:40:31 -04:00
109526520: Implement verify flow
When a person registers with a valid mobile number and email address, a code will be sent to each. That person can enter the verify codes and continue to the add-service page.
This commit is contained in:
@@ -30,3 +30,10 @@ def increment_failed_login_count(id):
|
||||
user = User.query.filter_by(id=id).first()
|
||||
user.failed_login_count += 1
|
||||
db.session.commit()
|
||||
|
||||
|
||||
def activate_user(id):
|
||||
user = get_user_by_id(id)
|
||||
user.state = 'active'
|
||||
db.session.add(user)
|
||||
db.session.commit()
|
||||
|
||||
Reference in New Issue
Block a user