Explorar el Código

! (profile) If a token is validated most likely needs to be re-created too because the page is reloaded and you can perform a second action

emanuele hace 13 años
padre
commit
a23cc94304
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Sources/Profile.php

+ 1 - 1
Sources/Profile.php

@@ -456,7 +456,7 @@ function ModifyProfile($post_errors = array())
 		isAllowedTo($security_checks['permission']);
 
 	// Create a token if needed.
-	if (isset($security_checks['needsToken']))
+	if (isset($security_checks['needsToken']) || isset($security_checks['validateToken']))
 	{
 		createToken($token_name, $token_type);
 		$context['token_check'] = $token_name;