diff --git a/modules/page-login.php b/modules/page-login.php index ea8032e..87b541a 100644 --- a/modules/page-login.php +++ b/modules/page-login.php @@ -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