mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 04:23:01 +00:00
Make sure the user actually exists before checking their password
This commit is contained in:
parent
651d456793
commit
5961d11e76
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ register_module([
|
|||
// The user wants to log in
|
||||
$user = $_POST["user"];
|
||||
$pass = $_POST["pass"];
|
||||
if(verify_password($pass, $settings->users->$user->password))
|
||||
if(!empty($settings->users->$user) && verify_password($pass, $settings->users->$user->password))
|
||||
{
|
||||
// Success! :D
|
||||
|
||||
|
|
Loading…
Reference in a new issue