[wp-trac] [WordPress Trac] #40768: site.com/login should not redirect to login page when user is already logged in

WordPress Trac noreply at wordpress.org
Wed Aug 16 09:50:09 UTC 2023


#40768: site.com/login should not redirect to login page when user is already
logged in
--------------------------------------+------------------------------
 Reporter:  subrataemfluence          |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Login and Registration    |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch needs-dev-note  |     Focuses:
--------------------------------------+------------------------------

Old description:

> When I am already logged in I should not be redirected to Login page if I
> type in `mysite.com/login`. Rather WordPress should be able to decide
> which page I should be on in this situation.
>
> Being redirected to Login page even when I am already logged in must be
> treated as a bug. The reason is I am being able to login as a different
> user by going to login page directly when I am already logged in!
>
> For example if I am already logged in as admin and type in
> `mysite.com/login` I should directly be taken to `wp-admin`. Same
> decision could be taken for different user privileges like if I am logged
> in as a subscriber or as a participant then I might land on site's home
> page.
>
> Inspired from [#40762] I have modified the decider so that WordPress can
> take this decision itself and stop landing logged in users to login page.

New description:

 When I am already logged in I should not be redirected to Login page if I
 type in `mysite.com/login`. Rather WordPress should be able to decide
 which page I should be on in this situation.

 Being redirected to Login page even when I am already logged in must be
 treated as a bug. The reason is I am being able to login as a different
 user by going to login page directly when I am already logged in!

 For example if I am already logged in as admin and type in
 `mysite.com/login` I should directly be taken to `wp-admin`. Same decision
 could be taken for different user privileges like if I am logged in as a
 subscriber or as a participant then I might land on site's home page.

 Inspired from #40762 I have modified the decider so that WordPress can
 take this decision itself and stop landing logged in users to login page.

--

Comment (by SergeyBiryukov):

 Related: #14949, #47088.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/40768#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list