Browse Source

Return a slightly friendly value from createToken()

Signed-off-by: Norv <[email protected]>
Norv 12 years ago
parent
commit
6746ce95e3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/Security.php

+ 1 - 1
Sources/Security.php

@@ -751,7 +751,7 @@ function createToken($action, $type = 'post')
 	$context[$action . '_token'] = $token;
 	$context[$action . '_token_var'] = $token_var;
 
-	return array($token_var, $token);
+	return array($action . '_token_var' => $token_var, $action . '_token' => $token);
 }
 
 /**