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
Uncaught (in promise) No authentication form has been registered for the method "craft\auth\methods\TOTP". LoginForm.js:2
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
- Amazon S3 2.2.1
- CKEditor 4.0.4
- Scout 5.0.0-beta.1
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 methodin/vendor/craftcms/cms/src/web/assets/cp/dist/cp.js.mapCP 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