Browse Source

No, I liked the first one

Zachary Kotlarek 12 years ago
parent
commit
02d37cb027
1 changed files with 5 additions and 5 deletions
  1. 5 5
      web/login.php

+ 5 - 5
web/login.php

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