LDAP userid logging in that has email address conflicting with a secondary email address already defined - gets non-helpful error message
Create/login with ldap user 't-alice', with email 't-alice@domain'. Add secondary address of 'alice@domain'.
Later, attempt to log in with ldap user 'alice' that has email address 'alice@domain'.
When you try to log in, you'll get an error:
undefined method `provider' for nil:NilClass
I realize there is probably no safe way to handle letting 'alice' log in, but should at least error out with an error message that explains the situation so the user can potentially correct it.
cannot create your account.```
I think given that ldap is a definitive/official data source usually, it would be reasonable to release the additional information of which account it tied to:
```The email address (alice@domain) for your account is already in use in the system
as a secondary email for user (t-alice), cannot create your account.```
Edited by 🤖 GitLab Bot 🤖