Compare commits

..

No commits in common. '1af5bdaa09175a7b42d6d9839803ec51a6db5940' and 'fa50546a34cbc6820b6f07a309aee83ba78b0b0f' have entirely different histories.

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

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

Loading…
Cancel
Save