nilsteampassnet / TeamPass

Collaborative Passwords Manager
https://www.teampass.net
1.67k stars 546 forks source link

Hung when click Login button #3183

Open smallfish01 opened 2 years ago

smallfish01 commented 2 years ago
### Steps to reproduce 1. Type username/password and click Login 2.System hung, please check the screenshot: ![image](https://user-images.githubusercontent.com/4077255/170448292-80f30043-1459-4c8f-bdb2-6daf7e0f01a6.png) [tp.config.php.zip](https://github.com/nilsteampassnet/TeamPass/files/8777506/tp.config.php.zip) Btw, before this I change admin password from Mysql, is possible the password need encryption? ### Expected behaviour Click Login button. ### Actual behaviour Tell us what happens instead ### Server configuration **Operating system**: Ubuntu 20.04 **Web server:** Apache 2.4 **Database:** Mysql **PHP version:**7.4 **Teampass version:** 3.0.0.17 **Teampass configuration file:** **Updated from an older Teampass or fresh install:** PLEASE attach to this issue the file `/includes/config/tp.config.php`. ### Client configuration **Browser:** **Operating system:** ### Logs #### Web server error log apache error log: [Thu May 26 16:53:12.042003 2022] [php7:error] [pid 2022] [client 192.168.13.79:62607] PHP Fatal error: Uncaught DomainException: Unsupported Password Hash Supplied in /var/www/html/teampass/includes/libraries/PasswordLib/Password/Factory.php:87\nStack trace:\n#0 /var/www/html/teampass/includes/libraries/PasswordLib/PasswordLib.php(78): PasswordLib\\Password\\Factory->verifyHash()\n#1 /var/www/html/teampass/sources/identify.php(1550): PasswordLib\\PasswordLib->verifyPasswordHash()\n#2 /var/www/html/teampass/sources/identify.php(351): checkCredentials()\n#3 /var/www/html/teampass/sources/identify.php(186): identifyUser()\n#4 {main}\n thrown in /var/www/html/teampass/includes/libraries/PasswordLib/Password/Factory.php on line 87, referer: http://192.168.13.177/teampass/index.php #### Log from the web-browser developer console (CTRL + SHIFT + i) ![image](https://user-images.githubusercontent.com/4077255/170451901-a0599db8-9a52-4b25-979a-bc4eefeae9a1.png)
smallfish01 commented 2 years ago

I think the root cause was I changed admin password to plaintext. I just re-install TeamPass and it works.

gonzalodeniz commented 2 months ago

In v3.1.2.55 I have the same error. My "pw" is encrypted. I have reinstalled but it does not fix it.

My error.log:

[Thu Aug 29 04:27:44.553614 2024] [php:error] [pid 11] [client 172.xx.xx.xx:55862] PHP Fatal error: Uncaught DomainException: Unsupported Password Hash Supplied in /var/www/html/teampass/vendor/passwordlib/passwordlib/lib/PasswordLib/Password/Factory.php:82\nStack trace:\n#0 /var/www/html/teampass/vendor/passwordlib/passwordlib/lib/PasswordLib/PasswordLib.php(63): PasswordLib\\Password\\Factory->verifyHash()\n#1 /var/www/html/teampass/vendor/teampassclasses/passwordmanager/src/PasswordManager.php(97): PasswordLib\\PasswordLib->verifyPasswordHash()\n#2 /var/www/html/teampass/vendor/teampassclasses/passwordmanager/src/PasswordManager.php(65): TeampassClasses\\PasswordManager\\PasswordManager->passwordLibVerify()\n#3 /var/www/html/teampass/sources/identify.php(2015): TeampassClasses\\PasswordManager\\PasswordManager->migratePassword()\n#4 /var/www/html/teampass/sources/identify.php(446): checkCredentials()\n#5 /var/www/html/teampass/sources/identify.php(159): identifyUser()\n#6 /var/www/html/teampass/sources/identify.php(191): handleAuthAttempts()\n#7 {main}\n thrown in /var/www/html/teampass/vendor/passwordlib/passwordlib/lib/PasswordLib/Password/Factory.php on line 82, referer: http://localhost:3080/teampass/