diff --git a/core/modules/user/lib/Drupal/user/Form/UserLoginForm.php b/core/modules/user/lib/Drupal/user/Form/UserLoginForm.php index a80dbdc..9edba58 100644 --- a/core/modules/user/lib/Drupal/user/Form/UserLoginForm.php +++ b/core/modules/user/lib/Drupal/user/Form/UserLoginForm.php @@ -190,7 +190,7 @@ public function validateAuthentication(array &$form, array &$form_state) { } } // We are not limited by flood control, so try to authenticate. - // Set $form_state['uid'] as a flag for user_login_final_validate(). + // Set $form_state['uid'] as a flag for self::validateFinal(). $form_state['uid'] = user_authenticate($form_state['values']['name'], $password); } } diff --git a/core/modules/user/user.module b/core/modules/user/user.module index 05a516a..2d9b7a0 100644 --- a/core/modules/user/user.module +++ b/core/modules/user/user.module @@ -1139,28 +1139,6 @@ function user_page_title($account) { } /** - * Set up a series for validators which check for blocked users, - * then authenticate against local database, then return an error if - * authentication fails. Distributed authentication modules are welcome - * to use hook_form_alter() to change this series in order to - * authenticate against their user database instead of the local users - * table. If a distributed authentication module is successful, it - * should set $form_state['uid'] to a user ID. - * - * We use three validators instead of one since external authentication - * modules usually only need to alter the second validator. - * - * @see user_login_name_validate() - * @see user_login_authenticate_validate() - * @see user_login_final_validate() - * @return array - * A simple list of validate functions. - */ -function user_login_default_validators() { - return array('user_login_name_validate', 'user_login_authenticate_validate', 'user_login_final_validate'); -} - -/** * Try to validate the user's login credentials locally. * * @param $name