delight-im / PHP-Auth

Authentication for PHP. Simple, lightweight and secure.
MIT License
1.11k stars 235 forks source link

composer update - undefined method: isWaitingForSecondFactor() #307

Open suppenfritz opened 6 months ago

suppenfritz commented 6 months ago

Hy,

today, i'm update this lib (regarding 2FactorAuth) with follow composer(v2.4.4) cmd's:

but, on every option, in the auth.php, the method "isWaitingForSecondFactor()" is not exist

pls, can you fix it, or can give me a solution(add manual)?

GThx & bg(hobby-dev), suppenfritz

ocram commented 6 months ago

Thank you!

Does the library download and install successfully with Composer, or is there a problem during that step already? Does your existing code (without any 2FA stuff) work correctly? Or do the problems only start when you add some 2FA calls and methods?

Where did you find the isWaitingForSecondFactor method, by the way? Did you just find it in the commits? Or while browsing the source code – online, not in your local vendor directory probably?

suppenfritz commented 6 months ago

hy,

yes, download and install with composer works correctly but no method's(2FA) are in the local(vendor) file's. yes, i found the 2FA stuff while i browsing the source code on GitHub after i test the lib on my server with the /tests/index.php -> error on line 880 in method: showDebugData() -> call $auth->isWaitingForSecondFactor() ;)

has 2FA beta status? idea/wish: is it possible do include "signal messenger" for 2FA?

thx, bg, suppenfritz