diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-11-22 09:12:05 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-11-22 09:12:05 +0000 |
commit | 3518d7bdf3ffe7ba4c3d1381ed9cb6ef17378140 (patch) | |
tree | a354f0ff0877ead1115aaadda7ea12fddebc8b41 | |
parent | 13d538287ecfe02f622a3c0cb8d283e11c321a20 (diff) | |
download | brdo-3518d7bdf3ffe7ba4c3d1381ed9cb6ef17378140.tar.gz brdo-3518d7bdf3ffe7ba4c3d1381ed9cb6ef17378140.tar.bz2 |
- Patch #99027 by greggles and webchick: help users request a new password when registration fails.
-rw-r--r-- | modules/user/user.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index 9594729e4..ad2f5bae9 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -927,7 +927,7 @@ function user_login_validate($form_id, $form_values) { $user = user_authenticate($form_values['name'], trim($form_values['pass'])); if (!$user->uid) { - form_set_error('login', t('Sorry, unrecognized username or password.') .' '. l(t('Have you forgotten your password?'), 'user/password')); + form_set_error('login', t('Sorry, unrecognized username or password. <a href="@password">Have you forgotten your password?</a>', array('@password' => url('user/password')))); watchdog('user', t('Login attempt failed for %user.', array('%user' => $form_values['name']))); } } @@ -1361,7 +1361,7 @@ function _user_edit_validate($uid, &$edit) { form_set_error('mail', $error); } else if (db_num_rows(db_query("SELECT uid FROM {users} WHERE uid != %d AND LOWER(mail) = LOWER('%s')", $uid, $edit['mail'])) > 0) { - form_set_error('mail', t('The e-mail address %email is already taken.', array('%email' => $edit['mail']))); + form_set_error('mail', t('The e-mail address %email is already registered. <a href="@password">Have you forgotten your password?</a>', array('%email' => $edit['mail'], '@password' => url('user/password')))); } else if (drupal_is_denied('mail', $edit['mail'])) { form_set_error('mail', t('The e-mail address %email has been denied access.', array('%email' => $edit['mail']))); |