You are here

function securesite_user_login_submit in Secure Site 8

Callback when a user logs in through user_login form

1 string reference to 'securesite_user_login_submit'
securesite_form_alter in ./securesite.module
Implements hook_form_alter().

File

./securesite.module, line 95
Enables HTTP authentication or an HTML form to restrict site access.

Code

function securesite_user_login_submit($form, &$form_state) {
  $edit['name'] = $form_state['values']['name'];
  $edit['pass'] = $form_state['values']['pass'];
  if (\Drupal::service('user.auth')
    ->authenticate($edit['name'], $edit['pass'])) {
    _securesite_user_digest_cleanup($edit);
  }
}