From 64299d745525ed90992682d76543760bc6355933 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Fri, 5 Aug 2005 01:18:39 +0000 Subject: [PATCH] - #27852: redirect to user edit page on first log-in --- modules/user.module | 2 +- modules/user/user.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/user.module b/modules/user.module index 12303ff22fb..37e36db999d 100644 --- a/modules/user.module +++ b/modules/user.module @@ -1062,7 +1062,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. $output .= "

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.

Your password is $pass. You may change your password on the next page.

Please login below.

"; - $output .= form_hidden('destination', 'user/'. $account->uid); + $output .= form_hidden('destination', 'user/'. $account->uid .'/edit'); $output .= form_hidden('name', $account->name); $output .= form_hidden('pass', $pass); $output .= form_submit(t('Log in')); diff --git a/modules/user/user.module b/modules/user/user.module index 12303ff22fb..37e36db999d 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -1062,7 +1062,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. $output .= "

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.

Your password is $pass. You may change your password on the next page.

Please login below.

"; - $output .= form_hidden('destination', 'user/'. $account->uid); + $output .= form_hidden('destination', 'user/'. $account->uid .'/edit'); $output .= form_hidden('name', $account->name); $output .= form_hidden('pass', $pass); $output .= form_submit(t('Log in'));