CakeDC / users

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

support robthree/twofactorauth v2 #1033

Closed LordSimal closed 1 year ago

LordSimal commented 1 year ago

See https://github.com/CakeDC/auth/pull/77

LordSimal commented 1 year ago

You want me to fix the CS Problems in this PR as well or should this be part of another PR?

rochamarcelo commented 1 year ago

What are the steps to upgrade an application using this?

LordSimal commented 1 year ago

This currently works for me without a problem on CakePHP 4.4 with PHP 8.1 (since its a requirement of that new package version). All I had to add/adjust in my config/users.php was

    'OneTimePasswordAuthenticator' => [
        'algorithm' => \RobThree\Auth\Algorithm::Sha1,
    ]

and of course upgrade the package.

rochamarcelo commented 1 year ago

Thank You.