Skip to content
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

Login attempt stucks and fails when first time login. Works after refreshing the page #32102

Closed
ScriptingBeating opened this issue Mar 25, 2020 · 14 comments

Comments

@ScriptingBeating
Copy link
Contributor

  • Laravel Version: 7.2 & 7.3
  • PHP Version: 7.3
  • Database Driver & Version: MYSQL 8.0

Description:

First attempt to login (post route) after starting the server fails and stuck on loading and if you refresh the page and try again it works. This issue is in both Laravel's default login and even when you create login from scratch.

Steps To Reproduce:

Create a new laravel project with authentication and try to login the first time

@ScriptingBeating ScriptingBeating changed the title Login attemp stuck and fails when first time login. Works after refreshing the page Login attempt stuck and fails when first time login. Works after refreshing the page Mar 25, 2020
@ScriptingBeating ScriptingBeating changed the title Login attempt stuck and fails when first time login. Works after refreshing the page Login attempt stucks and fails when first time login. Works after refreshing the page Mar 25, 2020
@timrspratt
Copy link
Contributor

All my laravel sites have been suffering from this recently. At one point I thought php 7.4 may have fixed it, but it seems to be happening with 7.4 too

@timrspratt
Copy link
Contributor

timrspratt commented Mar 25, 2020

@ScriptingBeating what browser? For me it is Chrome only, 1password maybe?

@ScriptingBeating
Copy link
Contributor Author

@timrspratt Yup it's in chrome. My old websites are working fine. But my two new websites are suffering from this. I am also using LastPass.

@ScriptingBeating
Copy link
Contributor Author

ScriptingBeating commented Mar 25, 2020

But why both lastpass and 1password creating the same problem ?

@driesvints
Copy link
Member

driesvints commented Mar 26, 2020

I'm currently running a project on Laravel 7.3 and PHP 7.4 where the login works just fine.

Can you first please try one of the support channels below? If you can actually identify this as a bug, feel free to report back and I'll gladly help you out and re-open this issue.

Thanks!

@blaab2
Copy link

blaab2 commented Jun 28, 2020

Others and me are facing the same problem. (https://laracasts.com/discuss/channels/laravel/laravel-got-stuck-after-login-laravel-58)

@ScriptingBeating have you found a solution for the problem?

@ScriptingBeating
Copy link
Contributor Author

@blaab2 Yeah the problem is related to the behaviour of some browser extensions like lastpass. This has nothing to do with the framework. Either disable your extensions or try in incognito mode.

@shingo0620
Copy link

I'm facing the same problem these days with Laravel 7.x, but I did not use any password related chrome extension. Guessing maybe this issue is related to telescope?

@DoubleTime
Copy link

DoubleTime commented Jul 23, 2020

Laravel 5.8 also facing this issue.
Way to reproduce:

  1. php artisan cache:clear
  2. Access using chrome incognito mode no extension
  3. Try login, stucked

@webdevmike
Copy link

I am experiencing the same issue. Login gets stuck in Chrome, although the user is actually logged in, it just doesn't redirect. If I refresh after it being stuck for a while, it redirects properly. Using Laravel 7, Chrome Incognito mode (so no browser extensions causing this), and using the default Laravel and Authentication setup. No customization.

@mark1282
Copy link

Just out of curiousity what session driver is everyone using? Has anyone tried changing it from file based to an in memory driver such as redis to see if that makes any difference?

@webdevmike
Copy link

Hey @mark1282 I'm using the default Laravel 7 setup. I created a brand new Laravel project yesterday, ran php artisan ui vue --auth registered a user, tried to log in and experience the issue. It happens both locally (using Valet) and in Production (using Forge).

I think it may actually be a bug in Chrome, because I don't see it happen in any other browser.

@mark1282
Copy link

mark1282 commented Jul 25, 2020

I'm having this issue on my local homstead evironment on Windows 10 in chrome. Just worried this is a more widespread issue.

@driesvints
Copy link
Member

Hey everyone,

I'm locking this issue because it either has gone off-topic, become a dumping ground for things which shouldn't be in an issue tracker or is just too old. Please try to discuss things further on one of the below channels:

@laravel laravel locked and limited conversation to collaborators Jul 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants