CakeDC / users

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

2FA not appearing anymore after 14.0 update #1074

Closed LordSimal closed 8 months ago

LordSimal commented 8 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 8 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 8 months ago

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