-
Notifications
You must be signed in to change notification settings - Fork 132
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 Failed. Please try again" PreventDefault #461
Comments
Thanks @abhishekpatel946 for reporting this. I can reproduce the issue on Incognito. |
@abhishekpatel946 Everything works fine in my system. Clear your cache, site settings and check again. |
Definitely we need better error reporting here. I've raised #462 once that goes in, we will get more logging. In Incognito login fails due to cookies not being enabled, we will have to figure it out later. |
@abhishekpatel946 Can you try reproducing the issue on https://dev.simplq.me? |
I got the point of the problem.
but if we |
sure 👍 |
Root cause: google/google-api-javascript-client#260 This is sad. |
What would be the best way to suppress this error message for us? Should we just pass an extra argument to skip the handleApiErrors call in case this particular situation occurs? |
@maaverik This is not our API failing, but the google login library reporting a failure when trying to login. We should not suppress this message, but show it to the user, right? So that he enable third party cookies if he wants to login (which is the We could show a better error message to alleviate the ugliness, but I feel we should think of a proper fix. |
It makes sense to show this if he tries to login, but this shows up if a user simply opens the site, which ruins user experience in my opinion. Can we modify that initial login attempt somehow? As for the message, can we change it to something like "Please enable cookies in your browser to login"? |
I see. If we disable it, we will have to see how login will happen when the user refreshes the page. 🤔 |
We don't need to disable it. I was thinking we could make error reporting optional for the initial login attempt on page load. Let it fail silently the first time the page loads. Although I can't think of a clean way to do this. We'd need to pass a variable all the way to the axios calls. |
ACK. We could do that. Don't know how to detect this, have to check. But still I would prefer trying to solve the root issue. We might probably have to implement server side OAuth. It will be a fun project. This is not a axios request. It's happening here. |
We could have a flag, and suppress the first time this happens. In case of affected users, first time should always be on page reload. We could do this with some flag, but just that we are doing a hack to cover up a bug. Server side OAuth flow might be a big task, and might have some cost/complexity... Or we would have to think of a different auth provider that can give us google sign in, I don't know. |
Let's go with the flag. Things are pretty simple and secure with google sign-in and so far, this is the only problem, right? I think it's tolerable. |
Summarising the discussion with @maaverik, we might be better off integrating to some other provider for auth, and he suggested Okta. I was checking it out, and Google doesn't provide SPA/React specific integration, but Octa does. So Octa might be cleaner to integrate, only that we have to pay after more than 1000 active user logins per month. This is good enough for us to evaluate. |
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
3 See error 'Login Failed. Please try again.'
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
![image](https://user-images.githubusercontent.com/46045014/104463193-7984ad80-55d7-11eb-971d-b65dd4ef249a.png)
Desktop (please complete the following information):
Additional context
On the Landing page unexpected
Login Failed. Please try again.
or when I click onHome
the same error prompt opens. I think when I landed or refresh the page the form will be submitted by default. Prevent this kind of uncertain form or click.The text was updated successfully, but these errors were encountered: