Quellcode durchsuchen

Smarter redirect

Zachary Kotlarek vor 12 Jahren
Ursprung
Commit
97be5decda
1 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen
  1. 5 5
      web/login.php

+ 5 - 5
web/login.php

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