Przeglądaj źródła

No, I liked the first one

Zachary Kotlarek 12 lat temu
rodzic
commit
02d37cb027
1 zmienionych plików z 5 dodań i 5 usunięć
  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');