Skip to content
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

Password reset confirmation email is not sent on occ command user:resetpassword #33384

Closed
paurakhsharma opened this issue Nov 1, 2018 · 4 comments · Fixed by #34137
Closed

Comments

@paurakhsharma
Copy link
Member

paurakhsharma commented Nov 1, 2018

Description

When the administrator resets the password of a user using the occ command with environment variable OC_PASS and set --sent-email.
sudo -E -u www-data ./occ user:resetpassword newuser --send-email --password-from-env
As expected the password of the user is changed but the email is not sent to the user saying his/her email has been changed.

Is this the expected behavior?
@phil-davis, @individual-it

@ownclouders
Copy link
Contributor

GitMate.io thinks the contributor most likely able to help you is @phil-davis.

Possibly related issues are #17869 (Can't reset password), #10092 (User Password Reset), #32569 (Expand occ user reset password email validation), #21561 (Password reset is not sending emails), and #9728 (Sending password reset eMail doesn't work).

@phil-davis
Copy link
Contributor

@PVince81 I guess this is a bug?

@paurakhsharma do you already have an acceptance test scenario to demonstrate this?

@paurakhsharma
Copy link
Member Author

@phil-davis, We don't have tests to demonstrate this.
But you should be aware that email is sent when --password-from-env is not used in the occ-command. And we have tests to demonstrate that.
In case (ie. when --password-from-env is used). The user should get an email saying something like Password changed successfully which is the case when administrator changes the user password using the webUI.

@phil-davis
Copy link
Contributor

Let's make an acceptance test scenario for this.

It is strange that if the sysadmin sets the password by typing it in, then the email is sent, but if the command gets it from the env variable then the email is not sent. I guess there will be some slightly different place in the code path that reads the env variable.

@paurakhsharma paurakhsharma removed their assignment Dec 21, 2018
@PVince81 PVince81 added this to the backlog milestone Jan 11, 2019
@phil-davis phil-davis changed the title Password reset confirmation email is not send on occ command user:resetpassword Password reset confirmation email is not sent on occ command user:resetpassword Jan 14, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jan 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants