Files
open-webui-ai4me/backend/open_webui/utils
Classic298 96a0b3239b fix: prevent first-user admin race in LDAP and OAuth registration (#23626)
Both LDAP and OAuth registration checked user count before insert to determine whether to assign admin role.  With multiple workers, concurrent first-user registrations could each see zero users and both create admin accounts.

Applies the insert-first-check-after pattern already used by signup_handler: insert with DEFAULT_USER_ROLE, then atomically check get_num_users()==1 and promote only the sole user to admin.
2026-04-12 11:28:41 -05:00
..
2026-03-17 17:58:01 -05:00
2026-04-01 05:54:58 -05:00
2026-03-17 17:58:01 -05:00
2026-03-17 17:58:01 -05:00
2026-03-17 17:58:01 -05:00
2026-04-10 10:15:55 -07:00
2026-04-11 17:06:58 -06:00
2026-03-17 17:58:01 -05:00
2026-03-17 17:58:01 -05:00
2026-03-17 17:58:01 -05:00
2026-03-23 19:46:24 -05:00
2026-03-24 16:24:46 -05:00
2026-03-17 17:58:01 -05:00
2026-03-17 17:58:01 -05:00
2026-04-10 10:15:55 -07:00
2026-04-08 13:34:23 -07:00
2026-03-26 18:24:17 -05:00
2026-03-24 04:49:48 -05:00
2026-03-17 17:58:01 -05:00
2026-03-24 04:49:48 -05:00
2026-03-17 17:58:01 -05:00
2026-03-24 04:49:48 -05:00
2026-03-17 17:58:01 -05:00
2026-03-17 17:58:01 -05:00
2026-04-11 16:44:12 -06:00
2026-04-02 08:11:06 -05:00
2026-03-24 04:49:48 -05:00