[drupal-devel] [bug] user/register returns user deny when a user is already logged in

breyten drupal-devel at drupal.org
Tue Aug 16 14:05:09 UTC 2005


Issue status update for 
http://drupal.org/node/17664
Post a follow up: 
http://drupal.org/project/comments/add/17664

 Project:      Drupal
 Version:      cvs
 Component:    user system
 Category:     bug reports
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  gufo1
 Updated by:   breyten
-Status:       patch (code needs review)
+Status:       patch (code needs work)

I'd rather opt for Drupal to display a message along the lines of 'You
can't register an account because you're already logged in.', instead
of an equally confusing redirect. Secondly, I'd like to see
consistency: If you're logged in now, and try to request a new
password, Drupal will give you a 403 as well.




breyten



Previous comments:
------------------------------------------------------------------------

Mon, 21 Feb 2005 15:46:56 +0000 : gufo1

Any user, even the administrator gets this user access error when he is
already logged in.
This causes confusion for users who are already logged in, instead it
should redirect the user to the user page.




------------------------------------------------------------------------

Fri, 01 Jul 2005 18:55:33 +0000 : alexis

Agree, I have the same problem with 4.6.2.




------------------------------------------------------------------------

Tue, 16 Aug 2005 11:28:48 +0000 : Tobias Maier

Attachment: http://drupal.org/files/issues/user_register_return_to_userspage_user.module.patch (1023 bytes)

here comes a patch for this


i needed relatively long to find out why this happens.


the behavour was theoretically implemented but hook_menu() denied it...







More information about the drupal-devel mailing list