[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 05:19:42 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:
--------------------------------------+------------------------------

Comment (by subrataemfluence):

 Replying to [comment:3 rajinsharwar]:
 > This does look like a valid enhancement for me. I have also noticed it
 before, but let's see what others think about it.

 Thank you @rajinsharwar.

 Replying to [comment:7 JeffPaul]:
 > @rajinsharwar I think there are still non-admin's that should/could be
 directed to the WP Admin (author, editor, perhaps frankly all default core
 roles have some actions feasible in the admin).

 I agree with @JeffPaul. WordPress restricts different accesses based on
 the role of the user logging in / already logged in. And to log in as a
 different user, one can always log out and log back in!

 If typing in the login URL even in logged in state brings up the login
 form and WordPress cannot decide where to go, I feel this is not ideal!

 Moreover, if I type in site.com/wp-admin, it will directly take me to the
 dashboard based on the user already logged in.

 So I don't see any logic behind landing me on login page when
 site.com/login is requested. Rather, in my opinion, here also the user
 should be taken to the dashboard directly with necessary restrictions
 applied.

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


More information about the wp-trac mailing list