-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reset password throws exception in my 3 test instances of Nextcloud 13 #9277
Comments
Confirmed, and it is not limited to NC13... |
Hi, I can confirm this bug as well. Users receive this error message (exception) after hitting the "reset password" button when they are forwarded to: This error message occurs in both cases, when I enter an email address (which is uniq on the server) and also when I enter the user name. The nextcloud.log contains the following error message:
|
Hey, this issue has been closed because the label (This is an automated comment from GitMate.io.) |
Reported by different users and still an issue: https://help.nextcloud.com/t/reporting-bugs-pointless-after-reporting-they-get-stale-and-are-auto-closed/33695 @jospoortvliet can you find somebody to take a look at? |
Hello, https://nextcloud.example.com/index.php/lostpassword/email 1 Definitely seems like a bug I think as two fresh installs with the same issue.` Why is this case is marked closed ? |
@andrimont if you see it is no longer present in 14, pls close this. If it is still there, let us know... |
have this in 14:
|
I have a very similar issue with Nextcloud 15.0.4 One user report to me that issue, I have create a test account where resetting password work fine, but I get an error with the user account (using username or email).
Is there any workaround ? |
I have same the same issue in Nextcloud v.15.0.5.3 |
@cClaude @onastvar @simonbuehler please use https://github.com/nextcloud/server/issues/new?labels=bug%2C+0.+Needs+triage&template=Bug_report.md to report a new issue (and provide the requested information). You have different error messages then the initial issue. |
@colinosullivan do you still see this issue? Usually your are running into this case a) if the same email address is used by different users (in this case it's not clear which account you want to reset) b) the user is disabled. |
@kesselb I am still having this issue today on my instance. The user is a new user with a new email never used on the instance. so I create the account. Sign in once. Then sign out the user, then I try to reset the forgotten password via their email address and I get.
I used the email address in this instance to reset the password. When I use the username as the forgotten password field same error as above. @kesselb I could try upgrading to the very latest version of NC but tbh it seems like this bug or issue hasn't had any attention? Seems like a primary function so wondering am I the only person having this issue. Thanks |
If you are still running Nextcloud 13 you may update to 14 (or newer) because 13 is end of life. Tested it with https://demo.nextcloud.com and reset works find for me (create demo instance, login as admin, set email for admin user, trigger password reset).
Every setup is different. There is a chance that this error is caused by some edge cases. There is a good coverage of the code by automated tests (https://codecov.io/gh/nextcloud/server/src/master/core/Controller/LostController.php). |
Thanks @kesselb I will upgrade no staging site now to the latest version and see if I've any issues at that stage. I will post here what version I go to and the tests. I have no doubt it is some edge case aright as the issues does not seem to be widespread. Ok, upgrading now. I will post here shortly. Col |
@colinosullivan if you still see the issue, can you re-open the issue please? |
for a user that does have en email it is throwing the following exception "Couldn't send reset email. Please make sure your username is correct". this happens even though an email is sent to me and I can reset my password as expected.
Screenshot:
https://help.nextcloud.com/uploads/default/original/2X/c/c82a67a0e3b84b9fc9b8f74626df88addb716495.png
Steps to reproduce
Expected behaviour
I would expect a successful message with instructional text to display as it did in NC12. I would expect the email to be sent to reset password without issue.
Actual behaviour
When I submitted the reset password on the server it displayed this exception instead of issuing a success message to the UI it instead throws the exception withe a status "error" exception "Couldn't send reset email. Please make sure your username is correct".
The nextcloud 13 server sends the reset password email as it should. I can complete the reset password no problem. So it is strange how the UI logic seems to have a big in it.
Server configuration
Operating system: Ubuntu 14.04 LTS
Web server: Apache/2.4.7 (Ubuntu)
Database: 5.5.58-MariaDB-1ubuntu0.14.04.1 (Ubuntu)
PHP version: PHP 7.0.27
Nextcloud version: 13.0.1
Updated from an older Nextcloud/ownCloud or fresh install:
Updated from Version 12 to 13 using the manual upgrade method shown here: https://docs.nextcloud.com/server/13/admin_manual/configuration_server/occ_command.html#command-line-upgrade-label
Where did you install Nextcloud from:
https://nextcloud.com/install/#
List of activated apps:
App list
Enabled:
Client configuration
Browser:
Chrome
Version 65.0.3325.181 (Official Build) (64-bit)
Operating system:
OSX Sierra
## Debugging efforts so far:
I have tracked the bug to the Lost Password Controller located at nextcloud13/core/Controller/LostController.php
In the following function it always throw the last exception which would suggest it is not returning the user object or the condition count($users) === 1 is not true. I would not want to modify core too much so hopefully a developer at nextcloud can take a look as it is happening for all of my test instances.
`/**
* @param string $input
* @return IUser
* @throws \InvalidArgumentException
*/
protected function findUserByIdOrMail($input) {
$user = $this->userManager->get($input);
if ($user instanceof IUser) {
if (!$user->isEnabled()) {
throw new \InvalidArgumentException($this->l10n->t('Couldn't send reset email. Please make sure your username is correct.'));
}
The text was updated successfully, but these errors were encountered: