mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 04:28:25 -04:00
notify-admin-1501
This commit is contained in:
@@ -116,9 +116,10 @@ def registration_continue():
|
|||||||
@main.route("/set-up-your-profile", methods=["GET", "POST"])
|
@main.route("/set-up-your-profile", methods=["GET", "POST"])
|
||||||
@hide_from_search_engines
|
@hide_from_search_engines
|
||||||
def set_up_your_profile():
|
def set_up_your_profile():
|
||||||
|
debug_msg(f"Enter set_up_your_profile with request.args {request.args}")
|
||||||
form = SetupUserProfileForm()
|
form = SetupUserProfileForm()
|
||||||
|
|
||||||
|
|
||||||
if form.validate_on_submit():
|
if form.validate_on_submit():
|
||||||
# start login.gov
|
# start login.gov
|
||||||
code = request.args.get("code")
|
code = request.args.get("code")
|
||||||
@@ -191,6 +192,10 @@ def _handle_login_dot_gov_invite(code, state, form):
|
|||||||
auth_type="sms_auth",
|
auth_type="sms_auth",
|
||||||
)
|
)
|
||||||
debug_msg(f"registered user {form.name.data} with email {user_email}")
|
debug_msg(f"registered user {form.name.data} with email {user_email}")
|
||||||
|
else:
|
||||||
|
User.update(mobile_number=form.mobile_number.data, name = form.name.data)
|
||||||
|
debug_msg(f"updated user {form.name.data}")
|
||||||
|
|
||||||
|
|
||||||
# activate the user
|
# activate the user
|
||||||
user = user_api_client.get_user_by_uuid_or_email(user_uuid, user_email)
|
user = user_api_client.get_user_by_uuid_or_email(user_uuid, user_email)
|
||||||
|
|||||||
Reference in New Issue
Block a user