mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #4068] [MERGED] feat: Added environment variable to hide email and password sign in elements #37024
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/4068
Author: @Louden7
Created: 7/24/2024
Status: ✅ Merged
Merged: 7/25/2024
Merged by: @tjbck
Base:
dev← Head:main📝 Commits (10+)
9bcd4ceMerge pull request #3559 from open-webui/devd506399Merge pull request #3768 from open-webui/dev3661dd1Merge pull request #3769 from open-webui/dev2011cbdMerge pull request #3773 from open-webui/deveff736aMerge pull request #3774 from open-webui/dev6e843abMerge pull request #3882 from open-webui/dev027dd84Merge pull request #3933 from open-webui/dev9518111Merge pull request #3940 from open-webui/devef8fbaaMerge pull request #3943 from open-webui/dev6668d79Merge pull request #3944 from open-webui/dev📊 Changes
5 files changed (+82 additions, -66 deletions)
View changed files
📝
backend/apps/webui/main.py(+2 -0)📝
backend/config.py(+6 -0)📝
backend/main.py(+1 -0)📝
src/lib/stores/index.ts(+1 -0)📝
src/routes/auth/+page.svelte(+72 -66)📄 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.
This is a draft pull request for this #3663
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
True. When set toFalsethe Email, Password, Sign up and OAuth "or" separator will not exist. This should only be set toFalsewhenENABLE_OAUTH_SIGNUPis set toTrue.Description
In some cases users hosting Open WebUI will only want to allow OAuth sign ups and sign ins. Although this is possible with the current configuration of disabling signups (
ENABLE_SIGNUPS=false) and enabling OAuth signups (ENABLE_OAUTH_SIGNUP=true) the login page has lingering unused elements. This PR added a new environment variableENABLE_LOGIN_FORMwhich is set toTrueby default but gives the user the option to remove the Email, Password, Sign in and OAuth separator "or" elements from the login page.Added
Additional Information
Screenshots or Videos
When

ENABLE_LOGIN_FORMis set to its default value ofTrueWhen

ENABLE_LOGIN_FORMis set toFalse🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.