Issue #1168514 by mdm, Transition: Remove drupal_goto() from user_login().
parent
a29f2d14a0
commit
0a93ca698f
|
|
@ -1578,12 +1578,6 @@ function user_set_authmaps($account, $authmaps) {
|
|||
* @ingroup forms
|
||||
*/
|
||||
function user_login($form, &$form_state) {
|
||||
global $user;
|
||||
|
||||
// If we are already logged on, go to the user page instead.
|
||||
if ($user->uid) {
|
||||
drupal_goto('user/' . $user->uid);
|
||||
}
|
||||
|
||||
// Display login form:
|
||||
$form['name'] = array('#type' => 'textfield',
|
||||
|
|
|
|||
Loading…
Reference in New Issue