Zachary Kotlarek 12 лет назад
Родитель
Сommit
02d37cb027
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      web/login.php

+ 5 - 5
web/login.php

@@ -11,16 +11,16 @@ if (isset($_REQUEST['logout'])) {
 	logout();
 }
 
-# Redirect if we're already authenticated
-if (authenticated()) {
-	login_redirect();
-}
-
 # Process login
 if (isset($_POST['username']) && isset($_POST['password'])) {
 	login($_POST['username'], $_POST['password']);
 }
 
+# Redirect if we're already authenticated
+if (authenticated()) {
+	login_redirect();
+}
+
 #=========================================================================================
 
 printHeader('UberZach TV - Login');