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

Added option to let user configure password via email #31

Merged
merged 4 commits into from
Jun 7, 2021

Conversation

sdrenth
Copy link

@sdrenth sdrenth commented Mar 5, 2021

What does it do?

This adds the possibility to let a user specify their own MODX password, using the same flow as the current manager Forgot password flow by sending a hashed link in the email which allows users to setup their new password. I also changed the "emailsubject" option to "subject" to make it uniform with the official MODX 3 branch.

I also removed the password notification methods because they are no longer needed.

New password options:
Screenshot 2021-03-05 at 10 36 30

Set up password mail:
Screenshot 2021-03-05 at 10 20 48

Why is it needed?

There used to be an option to send an email to the MODX user which contains their MODX account password. This has been removed (for security purposes). This basically readds that functionality but in a saver way.

Related issue(s)/PR(s)

#22
modxcms#13973

@ilyautkin
Copy link
Collaborator

I checked this PR and it's works.

@ilyautkin ilyautkin self-requested a review June 7, 2021 11:41
@ilyautkin ilyautkin merged commit c982408 into 3.x Jun 7, 2021
opengeek pushed a commit to modxcms/revolution that referenced this pull request Aug 30, 2024
### What does it do?

This is a re-up of #15461 originally by @sdrenth back in 2021, which has
gone stale waiting for some minor changes. I've rebased it, tweaked it,
tested it, so we can include it in 3.1.

This adds a new option for setting the password when creating/updating a
user: send the user a link to set their password. That's more secure and
builds upon improvements to the password reset flow that was done in
3.0.

### Why is it needed?

Showing the password on screen or manually setting a password is kinda
outdated and insecure.

### How to test

Create and/or edit a user, and choose "Let the user choose their own
password via email" for the password method. Look for the email (make
sure you have email delivery set up beforehand) and attempt to set the
new password.

### Related issue(s)/PR(s)

This PR replaces the stale PR #15461

Sterc#22
#13973
Sterc#31

Co-authored-by: sander <sander@sterc.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants