Browse Source

Login tokens weren't generated in a couple places

Signed-off-by: Michael Eshom <[email protected]>
Michael Eshom 11 năm trước cách đây
mục cha
commit
cff27c24c4
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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');