nextcloud / nextcloud/server

[Bug]: Accounts with same email cannot reset passwords or login via email

Open
#54,921 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage enhancement feature: authentication feature: users and groups hotspot: account name handling pending documentation
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

⚠️ This issue respects the following points: ⚠️
Bug description

Apparently the server won't prevent an admin from creating a new user with the same email as another user. Nor prevent a user from changing his own email address to that of another user. This will then generate an error if an attempt is made to change/reset password through email.

Steps to reproduce

create a new account with the same email as another account...

Expected behavior

the account is created without any warning

Nextcloud Server version

30

Operating system

Debian/Ubuntu

PHP engine version

None

Web server

None

Database engine version

None

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

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report
Warning core Could not send password reset email: Could not find user
List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the account-creation and email-change entry points, then the email password-reset and login flow described in the report. Reproduce users with duplicate email addresses and verify that the collision is handled and that password reset and email login no longer produce the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
authentication
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.