CakeDC / users

Users Plugin for CakePHP
https://www.cakedc.com
Other
519 stars 294 forks source link

2FA not appearing anymore after 14.0 update #1074

Closed LordSimal closed 4 months ago

LordSimal commented 4 months ago

Just upgraded my Cake5 app from version 12 to 14 and even though I have 2FA enabled it doesn't prompt me to enter my 2FA code after I login. Going to debug it now.

LordSimal commented 4 months ago

Seems like one has to add the following to the config/users.php:

'TwoFactorProcessors' => [
    \CakeDC\Auth\Authentication\TwoFactorProcessor\OneTimePasswordProcessor::class,
    \CakeDC\Auth\Authentication\TwoFactorProcessor\Webauthn2faProcessor::class,
],

I'd recommend adding that to the default users.php config in the plugin.

LordSimal commented 4 months ago

https://github.com/CakeDC/users/pull/1077