diff options
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/aur.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/lib/aur.inc b/web/lib/aur.inc index cfe4a96..5dec6e3 100644 --- a/web/lib/aur.inc +++ b/web/lib/aur.inc @@ -345,10 +345,10 @@ function html_header($title="") { if (isset($_POST["user"]) || isset($_POST["pass"])) { # Attempting to log in # - if (!isset($_POST["user"])) { + if (!isset($_POST["user"]) || $_POST['user'] === "") { $login_error = __("You must supply a username."); } - if (!isset($_POST["pass"])) { + if ((!isset($_POST["pass"]) || $_POST['pass'] === "") && empty($login_error)) { $login_error = __("You must supply a password."); } if (!$login_error) { |