Cannot read properties of undefined (reading 'key') #5301
Replies: 4 comments
-
+1 on this. I wasted an unholy amount of time trying to figure out why my local login wasn't working. I was clicking local login without realizing it was already selected for me, thus unselecting it and then not being able to log in. |
Beta Was this translation helpful? Give feedback.
-
+1... seems strange to allow it. |
Beta Was this translation helpful? Give feedback.
-
Two years later, the same issue is still a time sink... |
Beta Was this translation helpful? Give feedback.
-
I would love to see a more helpful error message (something like: "No authentication provider selected. Please choose one of the available providers"). This would also cover the case when multiple providers are available. |
Beta Was this translation helpful? Give feedback.
-
When only one authentication provider is active (Hide Local Authentication Provider setting is enabled), it is still possible for a user to disable/de-select the provider by clicking on it on the login page. Then the user gets the error message "Cannot read properties of undefined (reading 'key')".
Example:
By default the LDAP/AD provider is active (indicated by a light blue background). Login works as expected.
If the users clicks at the provider, it gets deactivated (indicated by a white background) and the users gets the error message.
Suggestion: If only one authentication provider is active, it should be impossible to disable it.
Beta Was this translation helpful? Give feedback.
All reactions