diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-06-08 06:04:15 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-06-08 06:04:15 +0000 |
commit | 9e0da3dc7c39786bf6d972e07819fe2880cdeaa3 (patch) | |
tree | 5249a2a0583a554ea832cd14e187d0665e0964b0 /includes | |
parent | 29eb5a62847349897716c316c8e409e5209f8535 (diff) | |
download | brdo-9e0da3dc7c39786bf6d972e07819fe2880cdeaa3.tar.gz brdo-9e0da3dc7c39786bf6d972e07819fe2880cdeaa3.tar.bz2 |
- Patch #143026 by ChrisKennedy and Steven: dynamically check password strength and confirmation.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/form.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/form.inc b/includes/form.inc index 1bd9542b6..6ad249cc1 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -1214,12 +1214,14 @@ function expand_password_confirm($element) { '#title' => t('Password'), '#value' => empty($element['#value']) ? NULL : $element['#value']['pass1'], '#required' => $element['#required'], + '#attributes' => array('class' => 'password-field'), ); $element['pass2'] = array( '#type' => 'password', '#title' => t('Confirm password'), '#value' => empty($element['#value']) ? NULL : $element['#value']['pass2'], '#required' => $element['#required'], + '#attributes' => array('class' => 'password-confirm'), ); $element['#element_validate'] = array('password_confirm_validate'); $element['#tree'] = TRUE; |