Browse Source

! (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 13 năm trước cách đây
mục cha
commit
a23cc94304
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;