示例#1
0
 /**
  * @param string $fid
  * @param bool   $success
  *
  * @return LoginLogResponse
  */
 public function retrieve($fid, $success)
 {
     $payload = new LoginLogPayload();
     $payload->fid = $fid;
     $payload->successful = $success;
     $ep = AuthEndpoint::bound($this->getApi());
     return $ep->loginLog($payload)->get();
 }
示例#2
0
 /**
  * @param string $fid
  *
  * @return GetPasswordRequirementsResponse
  */
 public function getUserPasswordRequirements($fid)
 {
     $payload = new UserPayload();
     $payload->fid = $fid;
     $ep = UserEndpoint::bound($this->getApi());
     $userType = $ep->getUserType($payload)->get();
     $ep = AuthEndpoint::bound($this->getApi());
     $requirementsPayload = new GetPasswordRequirementsPayload();
     $requirementsPayload->userType = $userType->result;
     $passwordRequirements = $ep->getPasswordRequirementsProcess($requirementsPayload)->get();
     return $passwordRequirements;
 }
 /**
  * @param string $fid
  *
  * @return FortifiApiRequestInterface|StringResponse
  */
 public function regenerateApiKey($fid)
 {
     $payload = new UserPayload();
     $payload->fid = $fid;
     $ep = AuthEndpoint::bound($this->getApi());
     return $ep->regenerateApiKey($payload)->get();
 }