?
avatar K2Joom
K2Joom
10 May 2016

Steps to reproduce the issue

Joomla Users Parameters
Allow Registration = No
New User Registration Group = Registered
Send Password = No
New User Account Activation = Self

Expected result

Admin creates User Account via backend.
Email sent to User with Activation Link and NO password

Actual result

Email sent to User with NO Activation link and a password

System information (as much as possible)

Joomla 3.5.1

Additional comments

More tests to follow

avatar K2Joom K2Joom - open - 10 May 2016
avatar K2Joom
K2Joom - comment - 10 May 2016

Setup a clean install via CloudAccess.

Update install to 3.5.1
Configure User Parameters
Allow Registration = No
New User Registration Group = Registered
Send Password = No
New User Account Activation = Self

Create new user via backend and save.

User email received:

Hello TestUser,

You have been added as a User to Your Joomla! Site hosted with CloudAccess.net by an Administrator.

This email contains your username and password to log in to http://# (address removed)

Username: TestUser
Password: REMOVED

Please do not respond to this message as it is automatically generated and is for information purposes only.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10376.

avatar K2Joom K2Joom - change - 10 May 2016
Title
User Registration Email - Not as configured
User Registration Email - Sends Password when set to NO
avatar K2Joom K2Joom - change - 10 May 2016
Title
User Registration Email - Not as configured
User Registration Email - Sends Password when set to NO
avatar infograf768
infograf768 - comment - 10 May 2016

The parameters like "Send Password" set to "No" are NOT used when a user is created in back-end.
Expected behavior.

avatar K2Joom
K2Joom - comment - 10 May 2016

For user accounts created via the frontend, when Allow User Registration = Yes and New User Account Registration = Self, then the user will get an email with no password and an activation link. This is correct

The issue sending of passwords via email, only comes about when an account is created via an admin in the backend.

If Send Password = No, then this should also apply for backend created user accounts?


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10376.

avatar infograf768
infograf768 - comment - 10 May 2016

Nope. How would the user created in back-end know the username and password which has been created by the admin?

avatar K2Joom
K2Joom - comment - 10 May 2016

The problem is that PLG_USER_JOOMLA_NEW_USER_EMAIL_BODY is used to produce the email sent to the user when admin creates an account.
There is no check for the Send Password parameter.

Suggest edit to the plugin and language value.
Plugin code should check the Send Password parameter in User settings, instead of relying on just the language file?


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10376.

avatar infograf768
infograf768 - comment - 10 May 2016

Again NO.
I have replied already: the user created in back-end would have NO WAY to know how to login if the password is NOT sent.

avatar infograf768
infograf768 - comment - 10 May 2016

@brianteeman
This should be closed imho

avatar K2Joom
K2Joom - comment - 10 May 2016

The email sent to the user, defined by PLG_USER_JOOMLA_NEW_USER_EMAIL_BODY, contains $s for the username and web address for the site.
Instead of sending the password via email as plain text, then it should be configured to use the web address and advise them to user their email address to reset the password via the activation link.

Hello %s,\n\nYou have been added as a User to ??.\n\nThis email contains your username and details on how to log in.\nTo reset your password, click here: %s\nEnter your email address.\n\nA verification code link will be emailed to you and once you have clicked the verification code link, you will be able to choose a new password for your account.\n\nPlease do not respond to this message as it is automatically generated and is for information purposes only.\n\n

This bypasses sending passwords via email.
This ensures the user resets the password, so admins no longer know what it is.
URL could be could defined as http://www.DOMAINNAME/index.php?option=com_users&view=reset
The user knows their email address, or is can be defined in the email.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10376.

avatar K2Joom
K2Joom - comment - 10 May 2016

Users do not need to know their username when resetting passwords, only the email address which was used to create the account.

It is just the issue of sending passwords in emails as plain text, which has been addressed for frontend but not for the backend and could be solved with that kind of solution.?


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10376.

avatar brianteeman
brianteeman - comment - 10 May 2016

We already have the ability to force a password reset on first login

avatar K2Joom
K2Joom - comment - 10 May 2016

True, but just addressing that backend created users, sends an email with the password as plain text.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10376.

avatar zero-24
zero-24 - comment - 10 May 2016

The reset password feature also send the password in plain text. ;)

You can get that on your custom site with an language override.

avatar K2Joom
K2Joom - comment - 10 May 2016

OK, no problem.
If sending passwords by email in plain text is acceptable then this is not an issue.

Just wondered why if we have ability to disable sending passwords for accounts setup on front end, it isn't adopted for users created by admins, especially if we can force them to reset the password.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10376.

avatar sovainfo sovainfo - reference | d299d05 - 14 May 16
avatar sovainfo
sovainfo - comment - 14 May 2016

See #10462

avatar brianteeman
brianteeman - comment - 14 May 2016

Closed as we have a PR for testing

avatar brianteeman brianteeman - change - 14 May 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-05-14 21:04:38
Closed_By brianteeman
avatar brianteeman brianteeman - close - 14 May 2016
avatar himangi
himangi - comment - 30 Sep 2016

I am using Joomla 3.6.2 and the password setting, to decide whether password should be sent to the user created by admin or not doesnt seem to be working. Please tell me the conclusion on this. Have checked the other issues marked in this but didnt find anything that helps me.
Only setting available is in user options (User joomla plugin doesnt have separate option). Since I am using social login, I just want to create users and not send password to them.

avatar sovainfo
sovainfo - comment - 30 Sep 2016

In j362 there is no such thing as a setting to decide whether password should be sent to the user created by admin. Tried to introduce that twice, but gave up.

You can use https://github.com/joomla/joomla-cms/pull/10990/files to implement it yourself.

Add a Comment

Login with GitHub to post a comment