Skip to content
Snippets Groups Projects
Unverified Commit cc65d6e9 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Migrate SimpleSAML_Auth_TimeLimitedToken to PSR-4.

parent 86b495dc
No related branches found
No related tags found
No related merge requests found
<?php <?php
namespace SimpleSAML\Auth;
/** /**
* A class that generates and verifies time-limited tokens. * A class that generates and verifies time-limited tokens.
*/ */
class SimpleSAML_Auth_TimeLimitedToken class TimeLimitedToken
{ {
/** /**
...@@ -31,7 +33,7 @@ class SimpleSAML_Auth_TimeLimitedToken ...@@ -31,7 +33,7 @@ class SimpleSAML_Auth_TimeLimitedToken
public function __construct($lifetime = 900, $secretSalt = null, $skew = 1) public function __construct($lifetime = 900, $secretSalt = null, $skew = 1)
{ {
if ($secretSalt === null) { if ($secretSalt === null) {
$secretSalt = SimpleSAML\Utils\Config::getSecretSalt(); $secretSalt = \SimpleSAML\Utils\Config::getSecretSalt();
} }
$this->secretSalt = $secretSalt; $this->secretSalt = $secretSalt;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment