public static function MoAuthUtilities::get_users_custom_attribute in Google Authenticator / 2 Factor Authentication - 2FA 8.2
Same name and namespace in other branches
- 8 src/MoAuthUtilities.php \Drupal\miniorange_2fa\MoAuthUtilities::get_users_custom_attribute()
10 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_inline_registration::handle_page_five_submit in src/
Form/ miniorange_2fa_inline_registration.php - MoAuthUtilities::invoke2fa_OR_inlineRegistration in src/
MoAuthUtilities.php
File
- src/
MoAuthUtilities.php, line 531 - 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;
}