Browse Source

Login tokens weren't generated in a couple places

Signed-off-by: Michael Eshom <[email protected]>
Michael Eshom 11 years ago
parent
commit
cff27c24c4
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Sources/Subs-Auth.php

+ 2 - 0
Sources/Subs-Auth.php

@@ -154,6 +154,7 @@ function KickGuest()
 
 	loadLanguage('Login');
 	loadTemplate('Login');
+	createToken('login');
 
 	// Never redirect to an attachment
 	if (strpos($_SERVER['REQUEST_URL'], 'dlattach') === false)
@@ -174,6 +175,7 @@ function InMaintenance()
 
 	loadLanguage('Login');
 	loadTemplate('Login');
+	createToken('login');
 
 	// Send a 503 header, so search engines don't bother indexing while we're in maintenance mode.
 	header('HTTP/1.1 503 Service Temporarily Unavailable');