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.Uhhh did you have a verified email?
Recommended threads
- User ID case sensitivity
I see that through REST (and SDK as well), getting a user is not case sensitive. And even though documentation does not clearly state that it is, the wording "V...
- Any way to temporarily bypass the email ...
Hey guys, any way to bypass the email verification to use the accounts again? i need to recover some projects that due to recent changes have been stopped, and ...
- How to use Sites on selfhosted appwrite
whenever I try to create a site even with template it says 404 nginx error