Browse Source

Tokens are always the first thing to check

Signed-off-by: emanuele <[email protected]>
emanuele 12 years ago
parent
commit
11c0af8aeb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Sources/Profile.php

+ 2 - 2
Sources/Profile.php

@@ -459,12 +459,12 @@ function ModifyProfile($post_errors = array())
 	unset($profile_areas);
 
 	// Now the context is setup have we got any security checks to carry out additional to that above?
+	if (isset($security_checks['validateToken']))
+		validateToken($token_name, $token_type);
 	if (isset($security_checks['session']))
 		checkSession($security_checks['session']);
 	if (isset($security_checks['validate']))
 		validateSession();
-	if (isset($security_checks['validateToken']))
-		validateToken($token_name, $token_type);
 	if (isset($security_checks['permission']))
 		isAllowedTo($security_checks['permission']);