revolution icon indicating copy to clipboard operation
revolution copied to clipboard

MODX 3: Users - Password notification method missing. Bug or by design?

Open jonleverrier opened this issue 7 years ago • 20 comments

Summary

There is a large gap where the Password notification method use to be. Also, the Password notification method is missing from a users profile - is this a bug or by design?

When "Let MODX generate a password" or "Let me specify the password" is selected on save, the password is presented on screen - no email is sent.

screen shot 2018-07-04 at 21 15 24

Step to reproduce

  1. Edit a users profile
  2. Go to the new password area
  3. Try to specify a password and email the user

Observed behavior

Password notification method missing

Expected behavior

To show Password notification method options

screen shot 2018-07-04 at 21 15 15

Environment

MODX3 Alpha v 3.0.0-dev From https://github.com/Sterc/modx3builds/raw/master/latest/modx3-alpha-regular.zip Chrome Version 67.0.3396.99

jonleverrier avatar Jul 04 '18 20:07 jonleverrier

I believe that to be by design; doesn't it send the user an email to change their pass always now? Maybe the text needs updating.

Mark-H avatar Jul 04 '18 20:07 Mark-H

I thought that also @Mark-H. But I didn't receive the email when I selected "Let MODX generate a password" and hit save. Plus there is a gap in the design where the password notifications use to be.

jonleverrier avatar Jul 04 '18 20:07 jonleverrier

There are a lot of times I don't want an email to be send when a (new) password is made for a user. I really don't hope this will be the default behaviour.

JoshuaLuckers avatar Jul 05 '18 08:07 JoshuaLuckers

I may be wrong and mixing up the manager reset password feature and changing the password from the back-end. Stuff happened in that department, but I don't immediately have it clear what did and didn't change, so this issue would warrant double checking at the least.

Mark-H avatar Jul 05 '18 08:07 Mark-H

Actually, we should consider removing the option for sending the password over email. It is very insecure and considered a terrible practice.

OptimusCrime avatar Jul 05 '18 13:07 OptimusCrime

42292998-f7f14342-7fd6-11e8-90a4-92fc19ea590f

How about adding a 3rd option "Let the user choose their own password via email", which would work like the forgotten password tool on the manager login page (it sends them a hashed link that takes them to the login screen to reset their password)

That way, we have the same functionality but is more secure (no plain text passwords over email)?

jonleverrier avatar Jul 05 '18 14:07 jonleverrier

Or was the plan for new users to just reset their password on the login manager page?

jonleverrier avatar Jul 05 '18 14:07 jonleverrier

I do not know if there are any plans about what to do next really. But a reset password link the a token that expire is a much better approach than sending the actual password in clear text.

OptimusCrime avatar Jul 05 '18 15:07 OptimusCrime

There should always be a possibility to view the generated link. Certainly for situations where it's not possible to send an e-mail (new install without the e-mail settings being configured).

JoshuaLuckers avatar Jul 06 '18 08:07 JoshuaLuckers

@JoshuaLuckers Nice idea!

jonleverrier avatar Jul 06 '18 08:07 jonleverrier

In #12162 @rtripault said:

@electrickite if you bridge Revo to a third party authentication system, i would say you should not have to manually create the modUser. Your bridge should take care of that on first logging attempt (but i might be missing some use case ^^)

In some cases, the external authentication system does not handle authorization. A user account is "pre-created" in MODX and given appropriate permissions. The external provider then matches the authenticated user to a MODX account.

electrickite avatar Jul 19 '18 13:07 electrickite

I use "show on screen" ALL THE TIME! Please do not remove it. What is the problem with this when I'm sitting here all by myself? In a crowded public place, maybe you don't want to show the password on screen, so just add a third option to neither email nor show on screen.

Some of my clients are very tech un-savvy, so I set up passwords, then call them and give them the password (or email the password by itself with nothing else at all in the email, so that no one intercepting it could have any clue what it's for). I don't want to have to require clients to use a password reset at the outset. Also, at times (for these tech-unsavvy people), I need to have a record of their password so that if anything goes wrong I can log in as them to troubleshoot a problem.

SnowCreative avatar Aug 25 '18 12:08 SnowCreative

I do not think removing the show on screen option has been brought up here?

OptimusCrime avatar Aug 25 '18 22:08 OptimusCrime

This issue is about the "show on screen option" not being there in 3.x.

JoshuaLuckers avatar Aug 26 '18 12:08 JoshuaLuckers

Oh, I am so sorry. The discussion derailed a bit in the later comments. Then I agree, the show on screen should be added back, despite the fact that this approach is horrible from a security standpoint.

@rainbowtiger One concern is network security, as the password now is sent both to and from the server in clear text.

OptimusCrime avatar Aug 26 '18 12:08 OptimusCrime

@OptimusCrime SSL encrypted these days.

Jako avatar Aug 26 '18 17:08 Jako

Yes, I make sure all my sites use SSL only.

SnowCreative avatar Aug 26 '18 23:08 SnowCreative

What's the current thinking on this? In MODX 3 now, there is just "show the new password on the screen" as an option, with no way to turn it off or select something else. If the plan is to only show it on the screen, why do we need this at all? Screen Shot 2021-11-14 at 10 49 48 AM

SnowCreative avatar Nov 14 '21 15:11 SnowCreative

Please note #15461 proposed some additions but requested changes were never made, so that's not been merged.

Mark-H avatar Nov 14 '21 16:11 Mark-H

@SnowCreative We had to return the radio option, without it there was a bug and the password was not shown on the screen, see in https://github.com/modxcms/revolution/pull/15629

Ruslan-Aleev avatar Nov 14 '21 18:11 Ruslan-Aleev