summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwebchick2012-10-18 07:14:14 (GMT)
committerwebchick2012-10-18 07:14:14 (GMT)
commit0a93ca698fb172a8d7895cd394b664db6f95c158 (patch)
tree1894a7cda9a7c72b5f4e25f7ece280e2c70bcdd4
parenta29f2d14a0e2a97df4688df694b972cdffb4d0b4 (diff)
Issue #1168514 by mdm, Transition: Remove drupal_goto() from user_login().
-rw-r--r--core/modules/user/user.module6
1 files changed, 0 insertions, 6 deletions
diff --git a/core/modules/user/user.module b/core/modules/user/user.module
index fae45ad..c064427 100644
--- a/core/modules/user/user.module
+++ b/core/modules/user/user.module
@@ -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',