diff --git a/api/mailinabox.yml b/api/mailinabox.yml index bd4b203b..92a768af 100644 --- a/api/mailinabox.yml +++ b/api/mailinabox.yml @@ -1740,7 +1740,7 @@ paths: text/html: schema: type: string - /mfa/totp/enable: + /mfa/enable/totp: post: tags: - MFA diff --git a/management/daemon.py b/management/daemon.py index e8e679e4..1a9e8891 100755 --- a/management/daemon.py +++ b/management/daemon.py @@ -468,7 +468,7 @@ def ssl_provision_certs(): def mfa_get_status(): # Anyone accessing this route is an admin, and we permit them to # see the MFA status for any user if they submit a 'user' form - # field. But we don't include provisioning info since a user can + # field. But we don't always include provisioning info since a user can # only provision for themselves. email = request.form.get('user', request.user_email) # user field if given, otherwise the user making the request try: @@ -485,7 +485,7 @@ def mfa_get_status(): return (str(e), 400) return json_response(resp) -@app.route('/mfa/totp/enable', methods=['POST']) +@app.route('/mfa/enable/totp', methods=['POST']) @authorized_personnel_only def totp_post_enable(): secret = request.form.get('secret') diff --git a/management/templates/mfa.html b/management/templates/mfa.html index f45b263f..415374d9 100644 --- a/management/templates/mfa.html +++ b/management/templates/mfa.html @@ -1,34 +1,10 @@

Two-Factor Authentication

@@ -51,10 +27,11 @@ and ensure every administrator account for this control panel does the same.
-
Loading...
+
+
-
-

Setup Instructions

+ +

Add a TOTP Device

1. Install FreeOTP or any @@ -85,24 +62,24 @@ and ensure every administrator account for this control panel does the same. -

-
-

Two-factor authentication is active for your account.

-

You will have to log into the admin panel again after disabling two-factor authentication.

-
-
- -
- -
+ + +