[PR #20260] [MERGED] feat: expose ADMIN_EMAIL setting in Admin Panel #80398

Closed
opened 2026-05-13 14:28:21 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/20260
Author: @Classic298
Created: 12/30/2025
Status: Merged
Merged: 12/30/2025
Merged by: @tjbck

Base: devHead: admin-email


📝 Commits (1)

  • 44c22a8 feat: expose ADMIN_EMAIL setting in Admin Panel

📊 Changes

2 files changed (+21 additions, -0 deletions)

View changed files

📝 backend/open_webui/routers/auths.py (+4 -0)
📝 src/lib/components/admin/Settings/General.svelte (+17 -0)

📄 Description

Description

Adds an "Admin Contact Email" input field to the Admin Settings → General page, allowing administrators to configure which email is displayed in the "Account Pending" overlay directly from the UI.

Previously, this setting could only be changed via the ADMIN_EMAIL environment variable. This PR exposes it in the admin panel for easier configuration.

Changes

Backend (routers/auths.py):

  • Added ADMIN_EMAIL to get_admin_config endpoint response
  • Added ADMIN_EMAIL to AdminConfig Pydantic model
  • Added ADMIN_EMAIL handling in update_admin_config endpoint

Frontend (components/admin/Settings/General.svelte):

  • Added conditional "Admin Contact Email" input field that appears when "Show Admin Details in Account Pending Overlay" is enabled
  • Placeholder text explains the fallback behavior: "Leave empty to use first admin user"

Behavior

  • If a value is entered: That email will be displayed in the pending account overlay
  • If left empty: Falls back to the first user in the database (existing behavior)
  • Supports any email address, including ones not in the system (matching env var behavior)

Closes #12500

image

Tested, works

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.

Note

Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.


🔄 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/20260 **Author:** [@Classic298](https://github.com/Classic298) **Created:** 12/30/2025 **Status:** ✅ Merged **Merged:** 12/30/2025 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `admin-email` --- ### 📝 Commits (1) - [`44c22a8`](https://github.com/open-webui/open-webui/commit/44c22a81143f4da3f42cc4e7bb4b34d3bb4105fa) feat: expose ADMIN_EMAIL setting in Admin Panel ### 📊 Changes **2 files changed** (+21 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/routers/auths.py` (+4 -0) 📝 `src/lib/components/admin/Settings/General.svelte` (+17 -0) </details> ### 📄 Description # Description Adds an "Admin Contact Email" input field to the Admin Settings → General page, allowing administrators to configure which email is displayed in the "Account Pending" overlay directly from the UI. Previously, this setting could only be changed via the ADMIN_EMAIL environment variable. This PR exposes it in the admin panel for easier configuration. ## Changes **Backend (routers/auths.py):** - Added ADMIN_EMAIL to get_admin_config endpoint response - Added ADMIN_EMAIL to AdminConfig Pydantic model - Added ADMIN_EMAIL handling in update_admin_config endpoint **Frontend (components/admin/Settings/General.svelte):** - Added conditional "Admin Contact Email" input field that appears when "Show Admin Details in Account Pending Overlay" is enabled - Placeholder text explains the fallback behavior: "Leave empty to use first admin user" ## Behavior - If a value is entered: That email will be displayed in the pending account overlay - If left empty: Falls back to the first user in the database (existing behavior) - Supports any email address, including ones not in the system (matching env var behavior) Closes #12500 <img width="2110" height="155" alt="image" src="https://github.com/user-attachments/assets/bfe74444-6003-4a41-9b45-0152b8b8c755" /> Tested, works ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. > [!NOTE] > Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in. --- <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-13 14:28:21 -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#80398