Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   Login error (http://www.bvlist.com/showthread.php?t=9090)

Hector 31st March 2022 12:07

Quote:

Originally Posted by MaD42 (Post 40507)
In takelogin.php I edited
PHP Code:

if ($row["passhash"] != md5($row["secret"] . $password $row["secret"]))
bark(); 

with

PHP Code:

//if ($row["passhash"] != md5($row["secret"] . $password . $row["secret"]))
// bark(); 

But now I found a new problem!All problems that I uploaded are red and I can stay at seed...What can I do?


Hi the problem with this is that it clears the password and everyone can log in with your username without a password maybe some other solution is possible?

Elena 16th April 2022 05:32

Code:

function is_password_correct($password, $secret, $hash){
return ($hash == md5($secret . $password . $secret) || $hash == md5($secret . trim($password) . $secret));}

if(!is_password_correct($password, $row['secret'], $row['passhash'])){

stderr("Login failed!","
Error: The username or password is not correct!
");
}



All times are GMT +2. The time now is 16:32.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.