[GH-ISSUE #4665] INITIAL_ADMIN_EMAIL with upper case character results in Invalid email or password #2966

Closed
opened 2026-02-26 07:37:26 +03:00 by kerem · 2 comments
Owner

Originally created by @JMDirksen on GitHub (Jul 19, 2025).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/4665

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

Describe the bug
When using the INITIAL_ADMIN_EMAIL environment variable with an email address with upper case characters you are not allowed to login (Invalid email or password) because it expects to find the email address with only lower case characters in the database.

Nginx Proxy Manager Version
v2.12.6

To Reproduce
Steps to reproduce the behavior:

  1. Set environment variable INITIAL_ADMIN_EMAIL with an upper case character
      INITIAL_ADMIN_EMAIL: Admin@example.com
      INITIAL_ADMIN_PASSWORD: changeme
  1. docker compose up
    Shows: Creating a new user: Admin@example.com with password: changeme
  2. Try to login with either admin@example.com or Admin@example.com
    Result: Invalid email or password

Expected behavior
Since the rest of the application does a toLowerCase() before changing the email in the database the initial setup.js should also do a toLowerCase() on the environment variable

I've created a PR #4664

Originally created by @JMDirksen on GitHub (Jul 19, 2025). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/4665 **Checklist** - Have you pulled and found the error with `jc21/nginx-proxy-manager:latest` docker image? - Yes - Are you sure you're not using someone else's docker image? - Yes - Have you searched for similar issues (both open and closed)? - Yes **Describe the bug** When using the **INITIAL_ADMIN_EMAIL** environment variable with an email address with upper case characters you are not allowed to login (_Invalid email or password_) because it expects to find the email address with only lower case characters in the database. **Nginx Proxy Manager Version** v2.12.6 **To Reproduce** Steps to reproduce the behavior: 1. Set environment variable INITIAL_ADMIN_EMAIL with an upper case character ``` INITIAL_ADMIN_EMAIL: Admin@example.com INITIAL_ADMIN_PASSWORD: changeme ``` 2. `docker compose up` Shows: `Creating a new user: Admin@example.com with password: changeme` 3. Try to login with either admin@example.com or Admin@example.com Result: _Invalid email or password_ **Expected behavior** Since the rest of the application does a toLowerCase() before changing the email in the database the initial setup.js should also do a toLowerCase() on the environment variable I've created a PR #4664
kerem 2026-02-26 07:37:26 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@robinmalik commented on GitHub (Nov 4, 2025):

Hitting this too. Thanks for figuring out the root cause.

<!-- gh-comment-id:3486701106 --> @robinmalik commented on GitHub (Nov 4, 2025): Hitting this too. Thanks for figuring out the root cause.
Author
Owner

@JMDirksen commented on GitHub (Nov 4, 2025):

You're welcome, it got fixed in the update that was released today v2.13.0 #4825

<!-- gh-comment-id:3486728363 --> @JMDirksen commented on GitHub (Nov 4, 2025): You're welcome, it got fixed in the update that was released today v2.13.0 #4825
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#2966
No description provided.