You are here

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

File

classes/User.php, line 26

Class

MiniorangeUser

Code

public function update() {
  $apiKey = variable_get('mo_auth_customer_api_key', NULL);
  if (is_null($this->customerId) || is_null($apiKey)) {
    return FALSE;
  }
  $usersAPIHandler = new UsersAPIHandler($this->customerId, $apiKey);
  $response = $usersAPIHandler
    ->update($this);
}