pub async fn authenticate_member(
pool: &Pool,
site: &TenantSlug,
request: &LoginRequest,
source: &'static str,
identifier: &str,
password: &str,
) -> Result<User, MemberLoginError>Expand description
Sign a member in by username OR (lowercased) email + password, in
tenant_slug (the tenant pool belongs to).
The attempt goes through the framework’s login gate in the tenant
scope, so the account shares one lock with the admin /login, and is
written to the security_log as source. Runs a dummy verify on
the unknown-account branch so response timing doesn’t reveal whether
the identifier exists.