Compare commits

..

2 Commits

@ -39,7 +39,7 @@ interface PersistenceInterface
* Only codes generated at a time greater than the indicated time will be deemed valid.
* @return bool
*/
public function storeLastTime(mixed $index, int $timestamp): bool;
public function storeLastTime(mixed $index, int $timestamp);
/**
* Gets and returns the otpauth URI for the user associated with the given user_id.

@ -7,6 +7,11 @@ use BradyMcD\TAATP\SessionInterface;
/** @SuppressWarnings(PHPMD.Superglobals) */
class Base implements SessionInterface
{
public function __construct()
{
\session_status() !== PHP_SESSION_NONE? : \session_start();
}
private function prefix($key): string
{
return "taatp_" . $key;

Loading…
Cancel
Save