You are here

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

File

classes/User.php, line 35

Class

MiniorangeUser

Code

public function create() {
  $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
    ->create($this);
}