From 36cd6b2b21a61cc73d837bcac22b163a39ef5e44 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Thu, 11 Jan 2007 03:24:42 +0000 Subject: #107966: Make login fields consistent size. --- modules/system/system.module | 2 +- modules/user/user.module | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/system/system.module b/modules/system/system.module index b735f5689..5bb4f67ae 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -62,7 +62,7 @@ function system_elements() { $type['submit'] = array('#input' => TRUE, '#name' => 'op', '#button_type' => 'submit', '#executes_submit_callback' => TRUE); $type['button'] = array('#input' => TRUE, '#name' => 'op', '#button_type' => 'submit', '#executes_submit_callback' => FALSE); $type['textfield'] = array('#input' => TRUE, '#size' => 60, '#maxlength' => 128, '#autocomplete_path' => FALSE); - $type['password'] = array('#input' => TRUE, '#size' => 30); + $type['password'] = array('#input' => TRUE, '#size' => 60); $type['password_confirm'] = array('#input' => TRUE, '#process' => array('expand_password_confirm' => array())); $type['textarea'] = array('#input' => TRUE, '#cols' => 60, '#rows' => 5); $type['radios'] = array('#input' => TRUE, '#process' => array('expand_radios' => array())); diff --git a/modules/user/user.module b/modules/user/user.module index f2ffe0fac..dde3049db 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -1312,6 +1312,7 @@ function user_edit_form($uid, $edit, $register = FALSE) { if (!$register) { $form['account']['pass'] = array('#type' => 'password_confirm', '#description' => t('To change the current user password, enter the new password in both fields.'), + '#size' => 25, ); } elseif (!variable_get('user_email_verification', TRUE) || $admin) { @@ -1319,6 +1320,7 @@ function user_edit_form($uid, $edit, $register = FALSE) { '#type' => 'password_confirm', '#description' => t('Provide a password for the new account in both fields.'), '#required' => TRUE, + '#size' => 25, ); } if ($admin) { -- cgit v1.2.3