Example #1
0
 protected function lock()
 {
     $identityStatus = $this->store->checkIdentityKey($this->authenticationKey);
     if ($identityStatus !== SqrlStoreInterface::IDENTITY_UNKNOWN) {
         $this->store->lockIdentityKey($this->authenticationKey);
         $this->store->endSession($this->requestNut);
         $this->tif |= self::ID_MATCH | self::SQRL_DISABLED;
     } else {
         $this->tif |= self::COMMAND_FAILED | self::CLIENT_FAILURE;
     }
 }