Commit 439e27cc authored by catch's avatar catch
Browse files

Issue #20446 by dead_arm: Added Cursor focus on user login page.

parent c74aa1ec
...@@ -1871,6 +1871,9 @@ function user_login($form, &$form_state) { ...@@ -1871,6 +1871,9 @@ function user_login($form, &$form_state) {
'#size' => 60, '#size' => 60,
'#maxlength' => USERNAME_MAX_LENGTH, '#maxlength' => USERNAME_MAX_LENGTH,
'#required' => TRUE, '#required' => TRUE,
'#attributes' => array(
'autofocus' => 'autofocus',
),
); );
$form['name']['#description'] = t('Enter your @s username.', array('@s' => variable_get('site_name', 'Drupal'))); $form['name']['#description'] = t('Enter your @s username.', array('@s' => variable_get('site_name', 'Drupal')));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment