diff --git a/hypha/apply/users/templates/wagtailusers/users/edit.html b/hypha/apply/users/templates/wagtailusers/users/edit.html index 752f5bf9b8..dcf7bf28ec 100644 --- a/hypha/apply/users/templates/wagtailusers/users/edit.html +++ b/hypha/apply/users/templates/wagtailusers/users/edit.html @@ -1,4 +1,17 @@ {% extends "wagtailusers/users/edit.html" %} +{% load users_tags i18n %} + +{% block actions %} + {{ block.super }} + {% user_2fa_enabled user as is_2fa_enabled %} + {% if is_2fa_enabled %} + + {% trans "Disable 2FA" %} + + {% else %} + + {% endif %} +{% endblock %} {% block extra_fields %}