Skip to content

[Bug]: Uppercase Letters in Email Addresses Cause Login and Email Delivery Issues #53367

Open
@reactor2k3

Description

@reactor2k3

⚠️ This issue respects the following points: ⚠️

Bug description

Subject: Bug: Uppercase Letters in Email Addresses Cause Login and Email Delivery Issues

Description:
When creating a user in Nextcloud with an email address that contains uppercase letters, the address is displayed correctly (with uppercase letters) in the account overview.
However, internally, the email address is saved or processed in all lowercase (or with uppercase letters removed).
This leads to the following issues:

Users cannot log in with their email address as expected.

Emails are sent to the "modified" (lowercase or shortened) version of the address, so users do not receive emails.

Steps to reproduce

  1. Create a new user in Nextcloud with an email address containing uppercase letters (e.g., John.Doe@Example.com).
  2. Check the account overview: the email address appears with uppercase letters.
  3. Try to log in or send a test email:

Login via email does not work as expected.
Emails are not delivered because they are sent to the "shortened" email address.

Expected behavior

Either:

Only allow lowercase letters when entering an email address (validate and reject uppercase letters),
or

Ensure that all routines (login, email delivery, etc.) properly handle email addresses with uppercase letters, as per standard (email addresses are case-insensitive in the local part by most providers, but should not be modified).

Nextcloud Server version

31

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Apache (supported)

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

Metadata

Metadata

Assignees

Labels

0. Needs triagePending check for reproducibility or if it fits our roadmap31-feedbackbug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions