diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-10-13 10:39:56 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-10-13 10:39:56 +0000 |
commit | 1c0b94653502363a77b17eefc4a79170df77f584 (patch) | |
tree | b36b68e9931a815a65a07be0abacaa2b57990e56 | |
parent | d3211f014ddb029d603592d64d22dca7fcc6bbd5 (diff) | |
download | brdo-1c0b94653502363a77b17eefc4a79170df77f584.tar.gz brdo-1c0b94653502363a77b17eefc4a79170df77f584.tar.bz2 |
- Modified version of patch #33348 by wolff: clean URL emitted when creating first user.
-rw-r--r-- | modules/user.module | 2 | ||||
-rw-r--r-- | modules/user/user.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/user.module b/modules/user.module index a68b0f471..fcec8547a 100644 --- a/modules/user.module +++ b/modules/user.module @@ -1086,7 +1086,7 @@ function user_register($edit = array()) { user_mail($edit['mail'], t('drupal user account details for %s', array('%s' => $edit['name'])), strtr(t("%username,\n\nYou may now login to %uri using the following username and password:\n\n username: %username\n password: %password\n\n%edit_uri\n\n--drupal"), $variables), "From: $from\nReply-to: $from\nX-Mailer: Drupal\nReturn-path: $from\nErrors-to: $from"); // This should not be t()'ed. No point as its only shown once in the sites lifetime, and it would be bad to store the password. $form['instructions'] = array('#type' => 'markup', '#value' => "<p>Welcome to Drupal. You are user #1, which gives you full and immediate access. All future registrants will receive their passwords via e-mail, so please configure your e-mail settings using the Administration pages.</p><p> Your password is <strong>$pass</strong>. You may change your password on the next page.</p><p>Please login below.</p>"); - $form['#action'] = 'user/'. $account->uid .'/edit'; + $form['#action'] = url("user/$account->uid/edit"); $form['name'] = array('#type' => 'hidden', '#value' => $account->name); $form['pass'] = array('#type' => 'hidden', '#value' => $pass); $form['submit'] = array('#type' => 'submit', '#value' => t('Log in')); diff --git a/modules/user/user.module b/modules/user/user.module index a68b0f471..fcec8547a 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -1086,7 +1086,7 @@ function user_register($edit = array()) { user_mail($edit['mail'], t('drupal user account details for %s', array('%s' => $edit['name'])), strtr(t("%username,\n\nYou may now login to %uri using the following username and password:\n\n username: %username\n password: %password\n\n%edit_uri\n\n--drupal"), $variables), "From: $from\nReply-to: $from\nX-Mailer: Drupal\nReturn-path: $from\nErrors-to: $from"); // This should not be t()'ed. No point as its only shown once in the sites lifetime, and it would be bad to store the password. $form['instructions'] = array('#type' => 'markup', '#value' => "<p>Welcome to Drupal. You are user #1, which gives you full and immediate access. All future registrants will receive their passwords via e-mail, so please configure your e-mail settings using the Administration pages.</p><p> Your password is <strong>$pass</strong>. You may change your password on the next page.</p><p>Please login below.</p>"); - $form['#action'] = 'user/'. $account->uid .'/edit'; + $form['#action'] = url("user/$account->uid/edit"); $form['name'] = array('#type' => 'hidden', '#value' => $account->name); $form['pass'] = array('#type' => 'hidden', '#value' => $pass); $form['submit'] = array('#type' => 'submit', '#value' => t('Log in')); |