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

Do not advertize the use of email as a valid username if explicitely disabled in configuration #3278

Closed
ArnY opened this issue Jan 26, 2017 · 11 comments · Fixed by #43946
Closed
Assignees
Labels
1. to develop Accepted and waiting to be taken care of enhancement feature: authentication feature: ldap good first issue Small tasks with clear documentation about how and in which place you need to fix things in.

Comments

@ArnY
Copy link

ArnY commented Jan 26, 2017

By default, the username input box on the login page has a default value of "Username or email". While this is true with the default configuration, it will still be displayed even if ldap_loginfilter_email is set to false in the ldap configuration, thus misleading users.

The placeholder value for this input should be dependant of the dap_loginfilter_email and ldap_loginfilter_username values.

@nickvergessen nickvergessen added bug feature: ldap good first issue Small tasks with clear documentation about how and in which place you need to fix things in. labels Jan 30, 2017
@nickvergessen
Copy link
Member

@blizzz can you confirm quickly?

@blizzz
Copy link
Member

blizzz commented Jan 30, 2017

@nickvergessen Yes, we have this text unconditionally in the template: https://github.com/nextcloud/server/blob/master/core/templates/login.php#L43

@ArnY is right in the way that what you can use for logging in is backend dependent, and we don't know what some backend is accepting. Technically correct would be solely Loginname.

@nickvergessen
Copy link
Member

I think I would accept "if ldap enabled and that thing is switched off, use a different placeholder"

@blizzz
Copy link
Member

blizzz commented Jan 31, 2017

Wouldn't work exactly, to reliable discover this we'd need to parse the login filter.

Could be as well an admin setting, with l10ned "Username" and "Username or email" or untranslated free text. Less Voodoo.

whitekiba added a commit to whitekiba/server that referenced this issue Mar 3, 2017
Signed-off-by: Sebastian Wessalowski <sebastian@wessalowski.org>
whitekiba added a commit to whitekiba/server that referenced this issue Mar 3, 2017
Signed-off-by: Sebastian Wessalowski <sebastian@wessalowski.org>
whitekiba added a commit to whitekiba/server that referenced this issue Mar 3, 2017
Signed-off-by: Sebastian Wessalowski <sebastian@wessalowski.org>
whitekiba added a commit to whitekiba/server that referenced this issue Mar 3, 2017
Signed-off-by: Sebastian Wessalowski <sebastian@wessalowski.org>
whitekiba added a commit to whitekiba/server that referenced this issue Mar 3, 2017
Signed-off-by: Sebastian Wessalowski <sebastian@wessalowski.org>
@MariusBluem
Copy link
Member

MariusBluem commented Mar 3, 2017

Fix is maybe in #3698

whitekiba added a commit to whitekiba/server that referenced this issue Mar 10, 2017
Signed-off-by: Sebastian Wessalowski <sebastian@wessalowski.org>
whitekiba added a commit to whitekiba/server that referenced this issue Mar 10, 2017
Signed-off-by: Sebastian Wessalowski <sebastian@wessalowski.org>
@nextcloud-bot nextcloud-bot added the stale Ticket or PR with no recent activity label Jun 20, 2018
@nextcloud-bot nextcloud-bot removed the stale Ticket or PR with no recent activity label Oct 1, 2018
@skjnldsv skjnldsv added the 0. Needs triage Pending check for reproducibility or if it fits our roadmap label Jun 12, 2019
@stanelie
Copy link

stanelie commented Nov 7, 2019

I am using an up to date version of Nextcloud with a LDAP backend, and I unticked the option to use email addresses in the LDAP config.
However, the login field still says I can use usernames or emails to login. Should I do something else for this feature to work?

@kesselb
Copy link
Contributor

kesselb commented Nov 7, 2019

I am using an up to date version of Nextcloud with a LDAP backend, and I unticked the option to use email addresses in the LDAP config.
However, the login field still says I can use usernames or emails to login. Should I do something else for this feature to work?

No. It's not implemented.

@szaimen

This comment was marked as resolved.

@Signum

This comment was marked as resolved.

@szaimen szaimen added 1. to develop Accepted and waiting to be taken care of and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap needs info labels Jun 9, 2021
@szaimen

This comment was marked as resolved.

@szaimen szaimen added needs info 0. Needs triage Pending check for reproducibility or if it fits our roadmap and removed 1. to develop Accepted and waiting to be taken care of labels Nov 26, 2022
@nickvergessen nickvergessen added 1. to develop Accepted and waiting to be taken care of and removed needs info 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Nov 26, 2022
@szaimen szaimen added enhancement and removed bug labels Nov 26, 2022
@max-nextcloud
Copy link
Contributor

Still an issue in 23, 24 and 25.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of enhancement feature: authentication feature: ldap good first issue Small tasks with clear documentation about how and in which place you need to fix things in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.