Problem/Motivation
It is easy to forget to change this to a more restrictive option "Administrators only" and not all sites are meant to be open to user registration. Since registered users have more options than anonymous ones this can easily be used to exploit the extra features of the website.
The option is found in http://example.com/admin/config/people/accounts
Proposed resolution
Change the standard and minimal installation profiles to set the register user setting to administrator only.
Screenshot
Before:

Standard profile after:

Minimal profile after:

| Comment | File | Size | Author |
|---|---|---|---|
| #24 | anonymous-users-create-accounts-2658980-24.patch | 2.51 KB | dagmar |
| #24 | interdiff-2658980-20-24.txt | 1.33 KB | dagmar |
| #21 | standard-after.png | 29.28 KB | john cook |
| #21 | minimal-after.png | 29.65 KB | john cook |
| #21 | before.png | 30.1 KB | john cook |
Comments
Comment #1
Anonymous (not verified) commentedfurious_snail created an issue. See original summary.
Comment #2
swentel commentedMakes sense, but that's not really major.
Comment #3
cilefen commentedComment #4
cilefen commentedComment #5
shiju john commentedI have created a patch by changing the default configuration set to "Administrators only"
Comment #7
soumyajit.basu commentedAs it is suggested above "Who can register accounts?" should be set to "Administrators only" by default, It is still by default not set to Adminsitrator only. Check the following screenshot
Comment #8
soumyajit.basu commentedComment #9
soumyajit.basu commentedComment #10
soumyajit.basu commentedComment #11
swentel commentedThis is not right.
Comment #12
swentel commentedComment #14
brolad commentedComment #15
brolad commentedComment #17
brolad commentedComment #19
revathi.b commentedComment #20
dagmarBased on patch #17.
Comment #21
john cook commentedFormatted summary and added screenshots from patch #20.
Comment #22
john cook commentedThe comments in
minimal_install()andstandard_install()need to be updated to take the new functionality into account.Also, if you can create an interdiff (https://www.drupal.org/documentation/git/interdiff) this makes it easy to review updated patches :)
Comment #23
dagmarComment #24
dagmarThanks @John Cook.
Comment #25
john cook commentedThe screen shots from #21 still apply as the patch from #24 only changes comments.
This achieves the goal described in the summary, so setting to RTBC.
Comment #27
catchThe issue summary claims there's a security issue, but the 'adminstrator approval required' setting does not allow those registered users to log in until they're activated.
I'm really not sure why we'd make this change - for a new site having no register option could be equally confusing.
Tagging for usability and product manager review since this affects the standard profile.
Comment #28
catchComment #29
Bojhan commentedI am not really sure, why this adds value. Users who are unfamiliar with Drupal will assume it doesn't allow registration - because of a option somewhere deep down in configuration.
Comment #30
yoroy commentedI think "Visitors, but administrator approval is required" is the better default for what Drupal wants to be as a product.
I'd say this is a won't fix.
Comment #31
john cook commentedHow about, instead of assuming one way or another we ask the user on install as part of the "Configure site" step? There is already other site specific settings in there, such as Default country.
It could be made mandatory and left blank to ensure that the user actually makes a choice rather than just accepting whatever the default is.
Any thoughts?
Comment #32
Bojhan commentedNope, we shouldn't just add checkboxes. The installer needs to remain simple. http://limi.net/checkboxes-that-kill/ is a good rationale, for why we shouldn't be doing this.
I think we are close to won't fixing this.
Comment #33
yoroy commentedComment #34
webchick