You are here

public static function MoAuthUtilities::get_users_custom_attribute in Google Authenticator / 2 Factor Authentication - 2FA 8

Same name and namespace in other branches
  1. 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.

... See full list

File

src/MoAuthUtilities.php, line 346
This file is part of miniOrange 2FA module.

Class

MoAuthUtilities

Namespace

Drupal\miniorange_2fa

Code

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;
}