Beispiel #1
0
 protected function ident()
 {
     $identityStatus = $this->store->checkIdentityKey($this->authenticationKey);
     if ($identityStatus === SqrlStoreInterface::IDENTITY_ACTIVE) {
         $this->store->logSessionIn($this->requestNut);
         $this->tif |= self::ID_MATCH;
     } elseif ($identityStatus === SqrlStoreInterface::IDENTITY_UNKNOWN) {
         $this->identUnknownIdentity();
     } elseif ($identityStatus === SqrlStoreInterface::IDENTITY_LOCKED) {
         if (empty($this->clientSUK) || $this->clientVUK !== $this->store->getIdentityVUK($this->authenticationKey)) {
             $this->tif |= self::CLIENT_FAILURE | self::COMMAND_FAILED;
         } else {
             $this->store->unlockIdentityKey($this->authenticationKey);
             $this->store->logSessionIn($this->requestNut);
             $this->tif |= self::ID_MATCH;
         }
     }
 }