Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Eventually force a secure token through session, can be used to sub-c…
Browse files Browse the repository at this point in the history
…all the ui for PDF generation
  • Loading branch information
cdujeu committed Oct 9, 2014
1 parent a49d740 commit 77681ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/core/classes/class.AuthService.php
Expand Up @@ -67,6 +67,10 @@ public static function generateSeed()
*/
public static function generateSecureToken()
{
if(isSet($_SESSION["FORCE_SECURE_TOKEN"])){
$_SESSION["SECURE_TOKEN"] = $_SESSION["FORCE_SECURE_TOKEN"];
return $_SESSION["SECURE_TOKEN"];
}
$_SESSION["SECURE_TOKEN"] = AJXP_Utils::generateRandomString(32); //md5(time());
return $_SESSION["SECURE_TOKEN"];
}
Expand Down

0 comments on commit 77681ab

Please sign in to comment.