public UserLoginForm::validateAuthentication(array &$form, FormStateInterface $form_state)
Checks supplied username/password against local users table.
If successful, $form_state->get('uid') is set to the matching user ID.
File
core/modules/user/src/Form/UserLoginForm.php, line 161
Class
UserLoginForm Provides a user login form.
Namespace
Drupal\user\Form
Code
public function validateAuthentication(array &$form, FormStateInterface $form_state) {
$password = trim($form_stat