summaryrefslogtreecommitdiffstats
path: root/web/lib/aur.inc
diff options
context:
space:
mode:
Diffstat (limited to 'web/lib/aur.inc')
-rw-r--r--web/lib/aur.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/lib/aur.inc b/web/lib/aur.inc
index cfe4a96f..5dec6e3c 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) {