summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-10-11 12:08:29 +0000
committerDries Buytaert <dries@buytaert.net>2006-10-11 12:08:29 +0000
commit89f58dafc90a5224003d192a7dca9c8dd2d28566 (patch)
tree953fc0a355ad048d0c9eb9e46f999fa69a64a92c /modules
parent08c6fc70e897107f6dd944b4d3ebc8e4bccc8644 (diff)
downloadbrdo-89f58dafc90a5224003d192a7dca9c8dd2d28566.tar.gz
brdo-89f58dafc90a5224003d192a7dca9c8dd2d28566.tar.bz2
- Patch #88474 by chx: fixed broken login.
Diffstat (limited to 'modules')
-rw-r--r--modules/user/user.module6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index b4271e4f0..621a9e0e6 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -697,7 +697,7 @@ function user_menu($may_cache) {
// Registration and login pages.
$items[] = array('path' => 'user/login', 'title' => t('log in'),
- 'callback' => 'drupal_get_form', 'callback arguments' => array('user_login'), 'access' => !$user->uid, 'type' => MENU_DEFAULT_LOCAL_TASK);
+ 'callback' => 'drupal_get_form', 'callback arguments' => array('user_login'), 'access' => TRUE, 'type' => MENU_DEFAULT_LOCAL_TASK);
$items[] = array('path' => 'user/register', 'title' => t('create new account'),
'callback' => 'drupal_get_form', 'callback arguments' => array('user_register'), 'access' => !$user->uid && variable_get('user_register', 1), 'type' => MENU_LOCAL_TASK);
$items[] = array('path' => 'user/password', 'title' => t('request new password'),
@@ -901,9 +901,6 @@ function user_login($msg = '') {
);
$form['submit'] = array('#type' => 'submit', '#value' => t('Log in'), '#weight' => 2, '#attributes' => array('tabindex' => '3'));
- // We set the action to 'user' because 'user/login' is no longer accessible once logged in:
- $form['#action'] = url('user');
-
return $form;
}
@@ -947,6 +944,7 @@ function user_login_submit($form_id, $form_values) {
user_module_invoke('login', $form_values, $user);
sess_regenerate();
+ return 'user/'. $user->uid;
}
}