mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-11-09 00:22:38 -06:00
Both `usernamefallback` + `emailfallback` on: lookup required username AND email match, so local user with different username never linked, duplicate account created. Now verified-email-only lookup always tried last. Fixes #2022 ## How to verify 1. Create a local user `localuser` with email `me@example.com`. 2. Configure an OIDC provider with `usernamefallback: true` and `emailfallback: true`. In the IdP, create a user whose email is `me@example.com` (sent with `email_verified: true`) and whose username/sub is different from `localuser`. 3. Log in to Vikunja through that OIDC provider. 4. **Expected:** You are logged in as `localuser`, and `vikunja user list` shows no new user for the provider's issuer. **Before this PR:** a second user with a random or IdP-provided username was created. --------- Co-authored-by: kolaente <k@knt.li>