I have LDAP enabled. When I use the "Standard" login method and login fails the LDAP tab is selected. When I click back on the Standard login tab my user name is still filled out.
To reproduce
Enable LDAP
Go to login page
Select standard login method tab
Attempt to log in with valid user and incorrect password
Expected behavior
After a login attempt the method you are attempting to log in with (in this case Standard) should be selected and the password field should be focused.
Designs
Child items
0
Show closed items
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Linked items
0
Link issues together to show that they're related or that one is blocking others.
Learn more.
Related merge requests
2
When these merge requests are accepted, this issue will be closed automatically.
Alex MayerTitle changed from Wrong Tab Selected When Loggin In Fails And Multiple Login Tabs Exists to Wrong Tab Selected When Loggin Fails And Multiple Login Tabs Exists
Title changed from Wrong Tab Selected When Loggin In Fails And Multiple Login Tabs Exists to Wrong Tab Selected When Loggin Fails And Multiple Login Tabs Exists
First of all, thank you for raising an issue to help improve the GitLab product. We're sorry about this, but this particular issue has gone unnoticed for quite some time. To establish order in the GitLab-CE Issue Tracker, we must ensure that every issue is correctly labelled and triaged, to get the proper attention.
This issue will be closed, as it meets the following criteria:
No activity in the past 4 months
Unlabelled
Unassigned
It's not associated with a particular milestone
We'd like to ask you to help us out and determine whether this issue should be reopened.
If this issue is reporting a bug, please can you attempt to reproduce on the latest version of GitLab or GitLab.com, to help us to understand whether the bug still needs our attention.
If this issue is proposing a new feature, please can you verify whether the feature proposal is still relevant.
Hello. I've pushed a PR for this issue.
The solution that I propose consists in saving into temporary session the last "failure_auth_method" used and showing
the correct tab depending on that.
Note: This is my first PR so I'd be happy to fix any mistakes I've done in the process.
@fatihacet What you think if I also move the class into a file in the asset pipeline so that you can use it if is needed? I mean leave the class instantiation in the signin_tabs_memoizer but make the class gobally available?