-
Notifications
You must be signed in to change notification settings - Fork 639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.x]: Unable to log into Control Panel - No authentication form has been registered for the method "craft\auth\methods\TOTP" #14908
Comments
Hi, thanks for reaching out! I think the main culprit here is going to be the 403 error when trying to load the Did you verify if you're able to view the contents of |
So, the update to 5.1.0 did not fix the issue. But by removing 2FA as a required setting, apply project config, then clearing out the I know it doesn't actually fix the issue, but let's me at least carry on with development Not sure if it helps with pointing roughly where the issue has come in? Hopefully it helps anyway |
Hey @LauraMontgomery, in
|
Thanks @brandonkelly I've been chatting to other devs on my team and we've tested / found out a couple more things this morning. To answer your questions:
By disabling the remote cp resources module and setting up a test admin user with 2FA, I was able to login. When I re-enabled the module and I run into the same issue. Another developer on my team has a hunch that the actionResourceJs controller action is not allowAnonymous, so it's failing to get the totp.js asset because we're not logged in yet |
Ah, I think that’s it. Just opened that controller action up to anonymous requests, for the next release. I’ll ping you once that’s tagged. |
Craft 4.9.1 and 5.1.1 are out with that fix. Let me know if it helps! |
Amazing! Thank you Brandon. I've ran that update and can now login with my test 2FA admin account. Thanks for pushing the fix so quickly :) |
Awesome, thanks for letting me know! |
What happened?
After enabling 2FA on a new Craft 5 site, and after my session timed out and I was automatically logged out, I have been unable to log back in.
I am getting a 403 on https://www.development-website.com/index.php?p=mf-admin/actions/app/resource-js&url=https://cdn.development-website.com/cpresources/eefccc45/totp.js?v=1714491585
And the error message
I was able to find the error
No authentication form has been registered for the method
in/vendor/craftcms/cms/src/web/assets/cp/dist/cp.js.map
CP Resources cache has been cleared, and site has been redeployed to staging environment to generate a new set of CP Resources, but the issue persists.
Craft CMS version
5.0.6
PHP version
8.2.18
Operating system and version
Linux 6.3.13-linuxkit
Database type and version
MariaDB 10.4.22
Image driver and version
Imagick 3.7.0 (ImageMagick 7.1.1-26)
Installed plugins and versions
The text was updated successfully, but these errors were encountered: