You are here

public function MiniorangeCustomerProfile::__construct in Google Authenticator / 2 Factor Authentication - 2FA 8

Same name and namespace in other branches
  1. 8.2 src/MiniorangeCustomerProfile.php \Drupal\miniorange_2fa\MiniorangeCustomerProfile::__construct()

Constructor.

File

src/MiniorangeCustomerProfile.php, line 22
Contains constants class.

Class

MiniorangeCustomerProfile
@file This class represents User Profile.

Namespace

Drupal\miniorange_2fa

Code

public function __construct() {
  $this->customer_id = \Drupal::config('miniorange_2fa.settings')
    ->get('mo_auth_customer_id');
  $this->registered_email = \Drupal::config('miniorange_2fa.settings')
    ->get('mo_auth_customer_admin_email');
  $this->api_key = \Drupal::config('miniorange_2fa.settings')
    ->get('mo_auth_customer_api_key');
  $this->token_key = \Drupal::config('miniorange_2fa.settings')
    ->get('mo_auth_customer_admin_token');
  $this->app_secret = \Drupal::config('miniorange_2fa.settings')
    ->get('mo_auth_customer_app_secret');
  $this->registered_phone = \Drupal::config('miniorange_2fa.settings')
    ->get('mo_auth_customer_admin_phone');
}