summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index a85358eaf..4ade502e4 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -1123,6 +1123,11 @@ function user_register_submit($form_id, $form_values) {
user_mail($mail, t('drupal user account details for %s', array('%s' => $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");
drupal_set_message(t('<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 make sure your website e-mail address is set properly under the general settings on the <a href="%settings">settings page</a>.</p><p> Your password is <strong>%pass</strong>. You may change your password below.</p>', array('%pass' => $pass, '%settings' => url('admin/settings'))));
user_authenticate($account->name, trim($pass));
+
+ // Set the installed schema version of the system module to the most recent version.
+ include_once './includes/install.inc';
+ drupal_set_installed_schema_version('system', max(drupal_get_schema_versions('system')));
+
drupal_goto('user/1/edit');
}
else {