moan0s / ILMO

Intelligent Library Management Online - A simple Web-App for the organization of a library, the users, books, opening hours and lendings.
https://www.fs-medtech.de/bib/
GNU General Public License v3.0
1 stars 1 forks source link

Relogin failed #75

Closed Sebastian1515 closed 3 years ago

Sebastian1515 commented 3 years ago

Logging out and then in failed. Deleting the password hash in the database solves the problem temporary. Regarding to class/data.php:267 the field 'password' should set to ' ', but this don't work´. Guess: Problems with the hash storing function. Hotfix: Comment line 269 ( "$oUser->save_user($aUser);") in class/data.php out.

moan0s commented 3 years ago

Oh well, that was quite stupid of me to implement it twice (and wrong once 😂). What I did wrong was to not distinguish between the plaintex password and the coloum password in the database, as the coloumn stores the legacy md5-hash... I checked other calls of this function and f71cf4a should work and not break anything else.