Back

Enabling MFA on appwrite account locked me out of the dashboard

  • 0
  • Self Hosted
artificial
19 Mar, 2024, 00:46

I went to the Account page of my appwrite console, enabled MFA expecting a mfa onboarding process but I was instead locked on a Verification page asking for a code from an authenticator I never set up. Entering any code shows a server error. How can I disable MFA now to allow me to log in?

Logs

TypeScript
[Error] Timestamp: 2024-03-19T00:41:35+00:00
[Error] Method: PUT
[Error] URL: /v1/account/mfa/challenge
[Error] Type: Error
[Error] Message: Call to a member function getAttribute() on null
[Error] File: /usr/src/code/src/Appwrite/Auth/MFA/Challenge/TOTP.php
[Error] Line: 15
Log pushed with status code: 200
[Error] Timestamp: 2024-03-19T00:41:36+00:00
[Error] Method: PUT
[Error] URL: /v1/account/mfa/challenge
[Error] Type: Error
[Error] Message: Call to a member function getAttribute() on null
[Error] File: /usr/src/code/src/Appwrite/Auth/MFA/Challenge/TOTP.php
[Error] Line: 15
[Error] Timestamp: 2024-03-19T00:41:56+00:00
[Error] Method: GET
[Error] URL: /v1/account
[Error] Type: Appwrite\Extend\Exception
[Error] Message: More factors are required to complete the sign in process.
[Error] File: /usr/src/code/app/controllers/shared/api.php
[Error] Line: 293
TL;DR
Enabling MFA on the appwrite account locked developer out of dashboard. Error 'Call to a member function getAttribute() on null' observed. To disable MFA and log in, go to your Appwrite workspace through SSH, update the Appwrite container, and set "ENABLE_USERS_MFA" to "false" in /etc/appwrite/config.json file. Restart Appwrite container service to apply changes and MFA should be disabled, allowing access to the dashboard.
Steven
19 Mar, 2024, 00:54

Uhhh did you have a verified email?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more