You are here

public function MiniorangeUser::update in Google Authenticator / 2 Factor Authentication - 2FA 8.2

Same name and namespace in other branches
  1. 8 src/MiniorangeUser.php \Drupal\miniorange_2fa\MiniorangeUser::update()

File

src/MiniorangeUser.php, line 23

Class

MiniorangeUser

Namespace

Drupal\miniorange_2fa

Code

public function update() {
  $apiKey = self::getApiKey();
  if (is_null($this->customerId) || is_null($apiKey)) {
    return FALSE;
  }
  $usersAPIHandler = new UsersAPIHandler($this->customerId, $apiKey);
  $response = $usersAPIHandler
    ->update($this);
}