nextcloud/lib/private/Authentication
Ferdinand Thiessen 3c4feff028
fix: Move login via email logic to local backend
Backends can decide which names they accept for login,
e.g. with user_ldap you can configure arbitrary login fields.
This was a hacky approach to allow login via email,
so instead this is now only handled by the local user backend.

This also fixes some other related problems:
Other logic relys on `backend::get()` which was not handling email,
so e.g. password policy could not block users logged in via email
if they use out-dated passwords.
Similar for other integrations, as the user backend was not consistent with
what is a login name and what not.

Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de>
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-03-03 18:02:07 +01:00
..
Events chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Exceptions chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Listeners fix: Make user removal more resilient 2024-09-26 20:48:37 +02:00
Login fix: Move login via email logic to local backend 2025-03-03 18:02:07 +01:00
LoginCredentials fix: crypto made inline for constructor and decrypt error handled in exception 2024-10-28 16:43:24 +05:30
Notifications feat(notifications): Migrate server INotifiers to new exceptions 2024-06-25 11:56:24 +02:00
Token fix: Adjust Entity types 2024-10-17 18:31:44 +02:00
TwoFactorAuth fix: Handle exception when clearing previously removed two factor tokens 2024-11-05 11:14:05 +01:00
WebAuthn chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00