diff --git a/hypha/apply/users/templates/wagtailusers/users/edit.html b/hypha/apply/users/templates/wagtailusers/users/edit.html index 6ee179e89dfbad85809d3869479de33d985219a4..6acd9e295ceed8f8f298f0f7472ececa06c58757 100644 --- a/hypha/apply/users/templates/wagtailusers/users/edit.html +++ b/hypha/apply/users/templates/wagtailusers/users/edit.html @@ -51,7 +51,7 @@ <!-- Add a custom button to user account edit form --> {% user_2fa_enabled user as is_2fa_enabled %} {% if is_2fa_enabled %} - <a href="{% url 'users:two_factor_reset' user.pk %}" class="button">{% trans "Disable 2FA" %}</a> + <a href="{% url 'users:admin_disable' user.pk %}" class="button">{% trans "Disable 2FA" %}</a> {% else %} <button type="button" title="{% trans "This account do not have 2FA enabled." %}" class="button" disabled>{% trans "Disable 2FA" %}</button> {% endif %} diff --git a/hypha/apply/users/urls.py b/hypha/apply/users/urls.py index ac4a14231e24551bbef53ac535485be2ec9eaadd..2fd5ff936cf1fa11cb01ccab2aad009889fbae91 100644 --- a/hypha/apply/users/urls.py +++ b/hypha/apply/users/urls.py @@ -89,7 +89,7 @@ urlpatterns = [ path('two_factor/required/', TWOFARequiredMessageView.as_view(), name='two_factor_required'), path('two_factor/backup_tokens/password/', TWOFABackupTokensPasswordView.as_view(), name='backup_tokens_password'), path('two_factor/disable/', TWOFADisableView.as_view(), name='disable'), - path('two_factor/admin/disable/<str:user_id>/', TWOFAAdminDisableView.as_view(), name='two_factor_reset'), + path('two_factor/admin/disable/<str:user_id>/', TWOFAAdminDisableView.as_view(), name='admin_disable'), path('confirmation/done/', EmailChangeDoneView.as_view(), name="confirm_link_sent"), path('confirmation/<uidb64>/<token>/', EmailChangeConfirmationView.as_view(), name="confirm_email"), path('activate/', create_password, name="activate_password"),