born05 / craft-twofactorauthentication

Craft plugin for two-factor or two-step login using Time Based OTP.
MIT License
36 stars 26 forks source link

Fix how TOTP is created #50

Closed bencroker closed 3 years ago

bencroker commented 3 years ago

The TOTP constructor is protected as of version 9, so a PHP error is thrown when it is called from the plugin. https://github.com/Spomky-Labs/otphp/blob/bfd24fe5b38b5d17cfa774224b000750ee51643c/src/TOTP.php#L21-L26

This PR fixes how TOTP instances are created.

roelvanhintum commented 3 years ago

Thanks @bencroker! Fixed in 2.8.1