class MiniorangeCustomerProfile in Google Authenticator / 2 Factor Authentication - 2FA 8
Same name and namespace in other branches
- 8.2 src/MiniorangeCustomerProfile.php \Drupal\miniorange_2fa\MiniorangeCustomerProfile
@file This class represents User Profile.
Hierarchy
- class \Drupal\miniorange_2fa\MiniorangeCustomerProfile
Expanded class hierarchy of MiniorangeCustomerProfile
21 files declare their use of MiniorangeCustomerProfile
- authenticate_user.php in src/
Form/ authenticate_user.php - This is used to authenticate user during login.
- configure_google_authenticator.php in src/
Form/ configure_google_authenticator.php - configure_kba.php in src/
Form/ configure_kba.php - configure_otp_over_email.php in src/
Form/ configure_otp_over_email.php - configure_otp_over_phone.php in src/
Form/ configure_otp_over_phone.php
File
- src/
MiniorangeCustomerProfile.php, line 11 - Contains constants class.
Namespace
Drupal\miniorange_2faView source
class MiniorangeCustomerProfile {
private $customer_id;
private $registered_email;
private $api_key;
private $token_key;
private $app_secret;
private $registered_phone;
/**
* Constructor.
*/
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');
}
public function getCustomerID() {
return $this->customer_id;
}
public function getAPIKey() {
return $this->api_key;
}
public function getTokenKey() {
return $this->token_key;
}
public function getAppSecret() {
return $this->app_secret;
}
public function getRegisteredEmail() {
return $this->registered_email;
}
public function getRegisteredPhone() {
return $this->registered_phone;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MiniorangeCustomerProfile:: |
private | property | ||
MiniorangeCustomerProfile:: |
private | property | ||
MiniorangeCustomerProfile:: |
private | property | ||
MiniorangeCustomerProfile:: |
private | property | ||
MiniorangeCustomerProfile:: |
private | property | ||
MiniorangeCustomerProfile:: |
private | property | ||
MiniorangeCustomerProfile:: |
public | function | ||
MiniorangeCustomerProfile:: |
public | function | ||
MiniorangeCustomerProfile:: |
public | function | ||
MiniorangeCustomerProfile:: |
public | function | ||
MiniorangeCustomerProfile:: |
public | function | ||
MiniorangeCustomerProfile:: |
public | function | ||
MiniorangeCustomerProfile:: |
public | function | Constructor. |