PHP-Auth
PHP-Auth copied to clipboard
composer update - undefined method: isWaitingForSecondFactor()
Hy,
today, i'm update this lib (regarding 2FactorAuth) with follow composer(v2.4.4) cmd's:
- update
- reinstall
- remove and install again with require (test all with new installation and new db with /test/index.php)
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
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?
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
I had a similar issue - the standard / documented composer request gets version 8.3.0 - not the current master - so the 2FA code isn't included.
I used:
composer require --dev delight-im/auth:dev-master
to obtain the master code - which has the 2FA code. This would be a great addition to see working and documented!
Sorry for the huge delay!
Everything is now here: https://github.com/delight-im/PHP-Auth/issues/318