-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redirects back to login page after clicking login button #112
Comments
Hi @abhishekfdd Keep posting updates on this task. Thanks, |
Ref Slack thread: https://rtcamp.slack.com/archives/CMPBQ2B09/p1657646249878179 |
@dhsathiya Is there any particular step to reproduce this issue, as I was able to login fine every time? |
@abhishekfdd As discussed, please try to set a timeout and see if you are able to reproduce the issue. |
@abhishekfdd: I was discussing it with @chandrapatel. He has a theory regarding this. Please talk with Chandra once. |
To replicate:
Nothing worked. Discussed with @chandrapatel problem seems to be in redirection but still we are not able to replicate the issue. |
Thanks for checking this again. If anyone faces the same issue, we will report it along with a screencast here. Keeping this task on hold till that. |
@elifvish Can you take a look at this and figure out a solution? |
Hi @elifvish Any updates on this? |
Yes, I was able to reproduce the issue. |
@elifvish Please update with the solutions tried and if any of them worked. |
The root issue is that nonce verification fails if a user visits Yesterday I tried a solution of redirection to wp-login.php now that I have found it. cc: @aviral-mittal |
GH-112 : Redirects back to login page after clicking login button
@Rink9 Need to test this fix as well. |
@aviral-mittal I have cross checked this issue on chrome, firefox, safari browser with clearing all the caches and cookies. Currently it's working as expected on production site on every browsers. And also Screen.Recording.2022-09-19.at.4.00.30.PM.mov |
@gagan0123 Can you please look into this issue? It doesn't seem to be fixed, or it is happening again. |
Thanks for providing the HAR file for debugging, as the issue is quite difficult to replicate. From the HAR file I've deduced that for the first login attempt, when you are redirected back to the login page, it gives a In code there are only three possible ways in which no error message would appear when the user is redirected back to the login page even on failure.
The third one seems plausible since the site you reported it for, uses page level caching. Now if you are being served a cached version of the login page, in that case the issue of nonce failure can occur whenever the cache is older than the nonce expiration. Will need to test this hypothesis. Keep you posted on the progress. |
I have noticed that when visiting a site after a while and using the Login-with-Google plugin, after clicking the login button the site gets redirected back to the
wp-login
page again.Previous observation:
The last time issue occurred, I checked the requests and found that the redirect was a soft redirect - 302. And the network tab showed that it is from
Disk Cache
The text was updated successfully, but these errors were encountered: