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
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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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:
dev← Head:admin-email📝 Commits (1)
44c22a8feat: 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):
Frontend (components/admin/Settings/General.svelte):
Behavior
Closes #12500
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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.