Change conditional for consistency

This commit is contained in:
Pea Tyczynska
2022-03-22 17:55:55 +00:00
parent eb0851e1e3
commit 99682db7bf

View File

@@ -147,7 +147,7 @@ def user_profile_mobile_number():
@main.route("/user-profile/mobile-number/delete", methods=['POST'])
@user_is_logged_in
def user_profile_mobile_number_delete():
if current_user.auth_type == 'sms_auth':
if current_user.auth_type != 'email_auth':
abort(403)
current_user.update(mobile_number=None)