[PR #4068] [MERGED] feat: Added environment variable to hide email and password sign in elements #60250

Closed
opened 2026-05-06 02:56:04 -05:00 by GiteaMirror · 0 comments
Owner

📋 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: devHead: main


📝 Commits (10+)

📊 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:

  • Target branch: Please verify that the pull request targets the dev branch.
  • Description: Provide a concise description of the changes made in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
  • Testing: Have you written and run sufficient tests for validating the changes?
  • Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
  • Prefix: To cleary categorize this pull request, prefix the pull request title, using one of the following:
    • BREAKING CHANGE: Significant changes that may affect compatibility
    • build: Changes that affect the build system or external dependencies
    • ci: Changes to our continuous integration processes or workflows
    • chore: Refactor, cleanup, or other non-functional code changes
    • docs: Documentation update or addition
    • feat: Introduces a new feature or enhancement to the codebase
    • fix: Bug fix or error correction
    • i18n: Internationalization or localization changes
    • perf: Performance improvement
    • refactor: Code restructuring for better maintainability, readability, or scalability
    • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)
    • test: Adding missing tests or correcting existing tests
    • WIP: Work in progress, a temporary label for incomplete or ongoing work

Changelog Entry

  • Added ENABLE_LOGIN_FORM environment variable set by default to True. When set to False the Email, Password, Sign up and OAuth "or" separator will not exist. This should only be set to False when ENABLE_OAUTH_SIGNUP is set to True.

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 variable ENABLE_LOGIN_FORM which is set to True by default but gives the user the option to remove the Email, Password, Sign in and OAuth separator "or" elements from the login page.

Added

  • ENABLE_LOGIN_FORM environment variable

Additional Information

  • This is a draft pull request for this #3663
  • This draft pull request will also be in conjunction to the Docs pull request open-webui/docs#156

Screenshots or Videos

When ENABLE_LOGIN_FORM is set to its default value of True
Screen Shot 2024-07-23 at 11 20 38 PM

When ENABLE_LOGIN_FORM is set to False
Screen Shot 2024-07-23 at 11 24 44 PM


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

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/4068 **Author:** [@Louden7](https://github.com/Louden7) **Created:** 7/24/2024 **Status:** ✅ Merged **Merged:** 7/25/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `main` --- ### 📝 Commits (10+) - [`9bcd4ce`](https://github.com/open-webui/open-webui/commit/9bcd4ce5c0a01af68c0d2aa44554a68bb741c61b) Merge pull request #3559 from open-webui/dev - [`d506399`](https://github.com/open-webui/open-webui/commit/d50639971ab7b5351dff874d643c96904746399f) Merge pull request #3768 from open-webui/dev - [`3661dd1`](https://github.com/open-webui/open-webui/commit/3661dd16b80d536a57e322c5c926f9503b5cef5e) Merge pull request #3769 from open-webui/dev - [`2011cbd`](https://github.com/open-webui/open-webui/commit/2011cbd2105f0fb1aa14a7167d41260c3d736aef) Merge pull request #3773 from open-webui/dev - [`eff736a`](https://github.com/open-webui/open-webui/commit/eff736acd2e0bbbdd0eeca4cc209b216a1f23b6a) Merge pull request #3774 from open-webui/dev - [`6e843ab`](https://github.com/open-webui/open-webui/commit/6e843ab563c6843aac3fa5bf13056cdd1ebdbaff) Merge pull request #3882 from open-webui/dev - [`027dd84`](https://github.com/open-webui/open-webui/commit/027dd848ebd9921060a2f5edaf18385ba08f448d) Merge pull request #3933 from open-webui/dev - [`9518111`](https://github.com/open-webui/open-webui/commit/9518111ed30f921bf921edf123bb0d003c9c6741) Merge pull request #3940 from open-webui/dev - [`ef8fbaa`](https://github.com/open-webui/open-webui/commit/ef8fbaae284d15497e46bc5fdf52f66c9574bf56) Merge pull request #3943 from open-webui/dev - [`6668d79`](https://github.com/open-webui/open-webui/commit/6668d79519af4a81a67b99cc13158b10ab7b3396) Merge pull request #3944 from open-webui/dev ### 📊 Changes **5 files changed** (+82 additions, -66 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 Description # Pull Request Checklist ### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/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:** - [x] **Target branch:** Please verify that the pull request targets the `dev` branch. - [x] **Description:** Provide a concise description of the changes made in this pull request. - [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [x] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? - open-webui/docs#156 - [x] **Testing:** Have you written and run sufficient tests for validating the changes? - [x] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards? - [x] **Prefix:** To cleary categorize this pull request, prefix the pull request title, using one of the following: - **BREAKING CHANGE**: Significant changes that may affect compatibility - **build**: Changes that affect the build system or external dependencies - **ci**: Changes to our continuous integration processes or workflows - **chore**: Refactor, cleanup, or other non-functional code changes - **docs**: Documentation update or addition - **feat**: Introduces a new feature or enhancement to the codebase - **fix**: Bug fix or error correction - **i18n**: Internationalization or localization changes - **perf**: Performance improvement - **refactor**: Code restructuring for better maintainability, readability, or scalability - **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.) - **test**: Adding missing tests or correcting existing tests - **WIP**: Work in progress, a temporary label for incomplete or ongoing work # Changelog Entry - Added ENABLE_LOGIN_FORM environment variable set by default to `True`. When set to `False` the Email, Password, Sign up and OAuth "or" separator will not exist. This should only be set to `False` when `ENABLE_OAUTH_SIGNUP` is set to `True`. ### 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 variable `ENABLE_LOGIN_FORM` which is set to `True` by default but gives the user the option to remove the Email, Password, Sign in and OAuth separator "or" elements from the login page. ### Added - ENABLE_LOGIN_FORM environment variable --- ### Additional Information - This is a draft pull request for this #3663 - This draft pull request will also be in conjunction to the Docs pull request open-webui/docs#156 ### Screenshots or Videos When `ENABLE_LOGIN_FORM` is set to its default value of `True` <img width="1316" alt="Screen Shot 2024-07-23 at 11 20 38 PM" src="https://github.com/user-attachments/assets/6c7e3c25-f553-4447-b063-59c450f5df3e"> When `ENABLE_LOGIN_FORM` is set to `False` <img width="1316" alt="Screen Shot 2024-07-23 at 11 24 44 PM" src="https://github.com/user-attachments/assets/6df29398-fd0d-4652-ad00-9a7c07b46993"> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-06 02:56:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#60250