function mo_auth_build_form_with_error_message in Google Authenticator / 2 Factor Authentication - 2FA 7
2 calls to mo_auth_build_form_with_error_message()
File
- ./
authenticate_user.inc, line 290 - This is used to authenticate user during login.
Code
function mo_auth_build_form_with_error_message(&$form_state, $empty_token = FALSE) {
global $base_url;
$uid = $form_state['uid'];
$user = user_load($uid);
$challenge_response = $_SESSION['mo_auth']['mo_challenge_response'];
$authType = AuthenticationType::getAuthType($challenge_response->authType);
$form = array();
$form = mo_auth_build_form($form, $user, $base_url, $authType, $challenge_response, FALSE, $empty_token);
$form_state['complete form']['header']['#markup'] = $form['header']['#markup'];
return $form;
}