Index: modules/user.module =================================================================== RCS file: /cvs/drupal/drupal/modules/user.module,v retrieving revision 1.612.2.10 diff -u -F^f -r1.612.2.10 user.module --- modules/user.module 23 May 2006 09:39:47 -0000 1.612.2.10 +++ modules/user.module 20 Jun 2006 20:58:29 -0000 @@ -707,7 +711,7 @@ function user_menu($may_cache) { // Registration and login pages. $items[] = array('path' => 'user/login', 'title' => t('log in'), - 'callback' => 'user_login', 'type' => MENU_DEFAULT_LOCAL_TASK); + 'callback' => 'user_login', 'type' => MENU_DEFAULT_LOCAL_TASK, 'access' => $user->uid == 0); $items[] = array('path' => 'user/register', 'title' => t('register'), 'callback' => 'user_register', 'access' => $user->uid == 0 && variable_get('user_register', 1), 'type' => MENU_LOCAL_TASK); $items[] = array('path' => 'user/password', 'title' => t('request new password'), @@ -897,6 +901,7 @@ function user_login($msg = '') { '#attributes' => array('tabindex' => '2'), ); $form['submit'] = array('#type' => 'submit', '#value' => t('Log in'), '#weight' => 2, '#attributes' => array('tabindex' => '3')); + $form['#action'] = url('user'); return drupal_get_form('user_login', $form); }