public static function MoAuthUtilities::get_users_custom_attribute in Google Authenticator / 2 Factor Authentication - 2FA 8
Same name and namespace in other branches
- 8.2 src/MoAuthUtilities.php \Drupal\miniorange_2fa\MoAuthUtilities::get_users_custom_attribute()
12 calls to MoAuthUtilities::get_users_custom_attribute()
- authenticate_user::buildForm in src/
Form/ authenticate_user.php - Form constructor.
- authenticate_user::mo_auth_authenticate_user_submit in src/
Form/ authenticate_user.php - authenticate_user::mo_auth_forgot_phone in src/
Form/ authenticate_user.php - miniorange_2fa_form_alter_submit in ./
miniorange_2fa.module - test_otp_over_email::buildForm in src/
Form/ test_otp_over_email.php - Form constructor.
File
- src/
MoAuthUtilities.php, line 346 - This file is part of miniOrange 2FA module.
Class
Namespace
Drupal\miniorange_2faCode
public static function get_users_custom_attribute($user_id) {
$connection = \Drupal::database();
$query = $connection
->query("SELECT * FROM {UserAuthenticationType} where uid = {$user_id}");
$result = $query
->fetchAll();
return $result;
}