Explorar o código

Merge pull request #563 from jdarwood007/loginfix

Login's fail with debug mode
Michael Eshom %!s(int64=11) %!d(string=hai) anos
pai
achega
8269a39de2
Modificáronse 1 ficheiros con 0 adicións e 5 borrados
  1. 0 5
      Sources/Security.php

+ 0 - 5
Sources/Security.php

@@ -779,11 +779,6 @@ function validateToken($action, $type = 'post', $reset = true)
 {
 	global $modSettings, $db_show_debug;
 
-	// Sorry, but token are not the best while debugging
-	// @todo: remove before commit...
-	if (!empty($db_show_debug))
-		return true;
-
 	$type = $type == 'get' || $type == 'request' ? $type : 'post';
 
 	// Logins are special: the token is used to has the password with javascript before POST it