nextcloud/tests/lib/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 refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Listeners refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Login fix: Move login via email logic to local backend 2025-03-03 18:02:07 +01:00
LoginCredentials fix: crypto type made not nullable and tests run using ICrypto 2024-10-28 15:04:11 +05:30
Token chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
TwoFactorAuth fix: Handle exception when clearing previously removed two factor tokens 2024-11-05 11:14:05 +01:00