mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #16720] [CLOSED] Feat/fix: enable initial signup and allow force display of login form with ENABLE_LOGIN_FORM=false #47267
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/16720
Author: @DmitriyAlergant
Created: 8/19/2025
Status: ❌ Closed
Base:
dev← Head:feat/auth-bootstrap-enhancements📝 Commits (7)
54caf70Force display of login form via ?force_form=true URL param even if ENABLE_LOGIN_FORM is false. Also show login for for the initial first user signup even if ENABLE_LOGIN_FORM is false.8f6d51dAllow first-time admin user signup even if ENABLE_LOGIN_FORM is false890e411fix: remove trailing whitespace in auth paged04dca7Merge branch 'dev' into feat/auth-bootstrap-enhancements407dc9aMerge pull request #16507 from open-webui/devcfd2a19Pull up to 0.6.2334df5c7Fix after merging in 0.6.23 (remove duplicate querystringValue declaration)📊 Changes
2 files changed (+25 additions, -5 deletions)
View changed files
📝
backend/open_webui/routers/auths.py(+2 -1)📝
src/routes/auth/+page.svelte(+23 -4)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Allows forceful invocation of a Login Form via url query parameter ?force_form=true in situation where the login form is generally disabled (and users normally rely on SSO/OAuth). Sometimes an admin still needs to log in manually using login/password. This is a frontend-only change not impacting security The /signin API always worked even if the form was disabled, so it was always possible to bypass the form and login via curl get a token and store it in the browser, just inconvenient.
Displays login form for the initial first user setup AND allow the /signup process to go through even if if the form is normally disabled by ENABLE_LOGIN_FORM=false. First admin user setup is essential for proper OpenWebUI initialization especially in scripted deployment scenarios e.g. to create its API key. Until now, the admin user could not be created (neither manually nor by a scripted curl request) if the login form was disabled via the env var, which complicated the initial deployment (basically had to start with ENABLE_LOGIN_FORM=true, signup the initial admin user, then change ENABLE_LOGIN_FORM=false). This is a backend change.
Changed
Changed login Form (username/password) and initial first-user sign-up form display conditions, allowing to see the form in some conditions even if the form is normally disabled by ENABLE_LOGIN_FORM=false.
Changed /signup route to allow initial admin user creation even when ENABLE_LOGIN_FORM=false.
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.