summaryrefslogtreecommitdiff
path: root/modules/user
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user')
-rw-r--r--modules/user/user.module3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index ca787e054..fe75f1c7b 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -3068,6 +3068,9 @@ function user_register_form($form, &$form_state) {
$form['#user'] = drupal_anonymous_user();
$form['#user_category'] = 'register';
+ $form['#attached']['library'][] = array('system', 'cookie');
+ $form['#attributes']['class'][] = 'user-info-from-cookie';
+
// Start with the default user account fields.
user_account_form($form, $form_state);