mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-16 20:49:00 -04:00
send people to /two-factor-sms instead of /two-factor
both routes are already valid, however, the link from sign-in sends to the old link. it fetches whichever URL is second in the route decorator list when you call `url_for`. Swapping the order around keeps the routes valid but starts pointing users to the new url.
This commit is contained in:
@@ -60,8 +60,8 @@ def two_factor_email(token):
|
||||
return log_in_user(user_id)
|
||||
|
||||
|
||||
@main.route('/two-factor-sms', methods=['GET', 'POST'])
|
||||
@main.route('/two-factor', methods=['GET', 'POST'])
|
||||
@main.route('/two-factor-sms', methods=['GET', 'POST'])
|
||||
@redirect_to_sign_in
|
||||
def two_factor_sms():
|
||||
user_id = session['user_details']['id']
|
||||
|
||||
Reference in New Issue
Block a user