summaryrefslogtreecommitdiff
path: root/www/login.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/login.php')
-rwxr-xr-xwww/login.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/www/login.php b/www/login.php
index a9f6f70..4d7ed6b 100755
--- a/www/login.php
+++ b/www/login.php
@@ -22,7 +22,8 @@ function print_login($case){
include("static/header.html");
$username = isset($_POST['username']) ? $_POST['username'] : "";
-
+ $message = "";
+
switch($case){
case(LOGIN_PASSWORD):
$message = '<h1 id="login-error"> Invalid username or password </h1>
@@ -42,7 +43,7 @@ function print_login($case){
<div class="login-area">
<h1 class="login-area"> Log in </h1>
<div class="login-area" id="login-info-bar">'
- .isset($message)? $message : "".
+ .$message.
'</div>
<form id="login-form" method="post" action="/login">
<input type="text" placeholder="username" name="username" id="username-input" class="login-input" value="'. $username .'" required>