You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
user_username is indexed but not unique. Only CUser::isValid() checks for duplicates (user_exists()), so two concurrent creates (sign-up, LDAP first login, and from Phase 2 SCIM) can produce two users with the same login. Login then picks whichever row the database returns first.
Fix: a migration that reports existing duplicates and renames all but the oldest (name, name-2, …), then adds UNIQUE (user_username). Create paths should treat a duplicate-key error as "user exists".
Activity
Make users.user_username unique (migration 077)