# Password recovery with only email address, not username

**URL:** <https://help.nextcloud.com/t/password-recovery-with-only-email-address-not-username/5464>\
**Category:** ℹ️ Support\
**Created:** [November 24, 2016, 2:57pm UTC](https://help.nextcloud.com/t/password-recovery-with-only-email-address-not-username/5464 "2016-11-24T14:57:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zax123](https://help.nextcloud.com/letter_avatar/zax123/32/6_449c533f586939b6e5f246632a46421f.png) [@zax123](https://help.nextcloud.com/u/zax123)\
**Post date:** [November 24, 2016, 2:57pm UTC](https://help.nextcloud.com/t/password-recovery-with-only-email-address-not-username/5464/1 "2016-11-24T14:57:36Z")

</div>

Hi all,

I’ve got a self-hosted install of NextCloud.

I’m using a mix of LDAP users and local DB users which works great!

My “guest” users are in the local DB, and internal users in LDAP.

My issue is with the password recovery. When a guest user forgets his/her password and only knows his/her email address, clicking on the forgot password link (with an email address in the username textbox) which pops up after an incorrect password attempt gives an error because the PHP code is looking for a username, not an email address.

Is there something I’m overlooking? I’m using NextCloud 10.0.0 which I’ve tweaked a little bit, but nothing to do with password recovery. Does 10.0.1 address this?

Is there some way to get the local DB users to get a password recovery email by using their email address and not their user name?

Thanks!

Robert

---

<div class="post-metadata">

**Author:** ![tflidd](https://help.nextcloud.com/letter_avatar/tflidd/32/6_449c533f586939b6e5f246632a46421f.png) [@tflidd](https://help.nextcloud.com/u/tflidd)\
**Post date:** [November 26, 2016, 10:07pm UTC](https://help.nextcloud.com/t/password-recovery-with-only-email-address-not-username/5464/2 "2016-11-26T22:07:11Z")

</div>

Wasn’t there a new feature that you could also login with your e-mailaddress? Not sure if that works in combination with LDAP. In that case you could perhaps ask to reset the password.

---

<div class="post-metadata">

**Author:** ![zax123](https://help.nextcloud.com/letter_avatar/zax123/32/6_449c533f586939b6e5f246632a46421f.png) [@zax123](https://help.nextcloud.com/u/zax123)\
**Post date:** [November 28, 2016, 1:22pm UTC](https://help.nextcloud.com/t/password-recovery-with-only-email-address-not-username/5464/3 "2016-11-28T13:22:32Z")

</div>

Hi there,

Yes, you can log on using your email address and that works no problem.

What I’m trying to do is a **password recovery** using an email address as reference as opposed to a user name.

I looked into the PHP code and the password recovery sequence expects a user name, not an email address. I would have to modify the code to accept an email address I guess…

- Robert

---

<div class="post-metadata">

**Author:** ![tflidd](https://help.nextcloud.com/letter_avatar/tflidd/32/6_449c533f586939b6e5f246632a46421f.png) [@tflidd](https://help.nextcloud.com/u/tflidd)\
**Post date:** [November 30, 2016, 9:27am UTC](https://help.nextcloud.com/t/password-recovery-with-only-email-address-not-username/5464/4 "2016-11-30T09:27:54Z")

</div>

Please open a feature request on [https://github.com/nextcloud/server/issues](https://github.com/nextcloud/server/issues), if you find an implementation, they will be very happy about a pull request as well.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [November 6, 2024, 8:47pm UTC](https://help.nextcloud.com/t/password-recovery-with-only-email-address-not-username/5464/5 "2024-11-06T20:47:29Z")

</div>

wwe: close old topics

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 9, 2024, 10:56am UTC](https://help.nextcloud.com/t/password-recovery-with-only-email-address-not-username/5464/6 "2024-12-09T10:56:07Z")

</div>


