artificialOriginal post
Web Developer
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
[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
Summary
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.