Closed (won't fix)
Project:
Drupal core
Version:
8.3.x-dev
Component:
user.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Feb 2015 at 21:20 UTC
Updated:
5 Feb 2017 at 16:59 UTC
Jump to comment: Most recent
Comments
Comment #1
vbouchetHi vgriffin,
I think the default value for the "Notify user of a new account" is something specific to each website.
You can very easily alter this default value via a hook_form_FORM_ID_alter(). Using the same hook, you can also fill password fields using the user_password() function which will generate a random password.
Comment #2
vgriffin commentedThe default in the user.module code is not explicitly set, which sets the box to unchecked. The checkbox is only shown when an administrator is creating an account for a new user. Having the site send an email to the user is the easiest way to tell (possibly remote) users that they've got accounts. It's generally common sense to let users know about their new accounts. The ideal would be to configure the default setting as part of setup. Failing this, the form should default to making it easy for clerical staff to tell users about the new account. (One of the precepts of form design is to make it at least as easy for a user to enter correct values as incorrect values.)
The behavior I describe is general purpose enough that it should be provided by user.module code itself rather than by requiring site creators to write modules to alter forms created by a core Drupal module. You probably also know people who "know Drupal" but couldn't possibly write a working module!
Because I had to make the change quickly, my "workaround" was to provide only the change to the notify checkbox by inserting:
in the appropriate place in user.module.
Comment #3
dcam commentedFeature changes must be made in the current development version, Drupal 8, then may be considered for backport.
Comment #7
dpi#5688: Resend welcome message from admin user/edit aims to provide a solution to this problem
I agree with #1, this is easily solvable by a contrib module which modifies the default value of that checkbox