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:

Comments

Anonymous’s picture

furious_snail created an issue. See original summary.

swentel’s picture

Priority: Major » Normal

Makes sense, but that's not really major.

cilefen’s picture

Version: 8.0.2 » 8.1.x-dev
cilefen’s picture

Issue tags: -user system defaults
shiju john’s picture

Status: Active » Needs review
Issue tags: +users
StatusFileSize
new523 bytes

I have created a patch by changing the default configuration set to "Administrators only"

Status: Needs review » Needs work

The last submitted patch, 5: 2658980-5.patch, failed testing.

soumyajit.basu’s picture

Title: "Who can register accounts?" should be set to "Administrators only" by default. » Contextual links toggle hides "Log out" link
Version: 8.1.x-dev » 8.0.x-dev
Component: user system » contextual.module
Category: Task » Bug report
Priority: Normal » Minor
Issue summary: View changes
Issue tags: -users +CSS
StatusFileSize
new81.98 KB

As 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 screenshotSet to administrator only

soumyajit.basu’s picture

soumyajit.basu’s picture

Status: Needs work » Reviewed & tested by the community
soumyajit.basu’s picture

swentel’s picture

Status: Reviewed & tested by the community » Needs work

This is not right.

swentel’s picture

Title: Contextual links toggle hides "Log out" link » "Who can register accounts?" should be set to "Administrators only" by default.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.0-beta1 was released on March 2, 2016, which means new developments and disruptive changes should now be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

brolad’s picture

StatusFileSize
new1.92 KB
brolad’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 14: 2658980-14.patch, failed testing.

brolad’s picture

Status: Needs work » Needs review
StatusFileSize
new1.41 KB

Status: Needs review » Needs work

The last submitted patch, 17: 2658980-17.patch, failed testing.

revathi.b’s picture

StatusFileSize
new1.61 KB
dagmar’s picture

Status: Needs work » Needs review
Issue tags: -users
StatusFileSize
new2.22 KB

Based on patch #17.

john cook’s picture

Issue summary: View changes
StatusFileSize
new30.1 KB
new29.65 KB
new29.28 KB

Formatted summary and added screenshots from patch #20.

john cook’s picture

The comments in minimal_install() and standard_install() need to be updated to take the new functionality into account.

+++ b/core/profiles/minimal/minimal.install
@@ -21,7 +21,7 @@ function standard_install() {...

+++ b/core/profiles/standard/standard.install
@@ -16,5 +16,5 @@ function minimal_install() {...
 
   // Allow visitor account creation, but with administrative approval.

Also, if you can create an interdiff (https://www.drupal.org/documentation/git/interdiff) this makes it easy to review updated patches :)

dagmar’s picture

Status: Needs review » Needs work
dagmar’s picture

Status: Needs work » Needs review
StatusFileSize
new1.33 KB
new2.51 KB

Thanks @John Cook.

john cook’s picture

Status: Needs review » Reviewed & tested by the community

The 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.

The last submitted patch, 19: register_accounts_2658980_19.patch, failed testing.

catch’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs usability review, +Needs product manager review

The 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.

catch’s picture

Bojhan’s picture

I 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.

yoroy’s picture

Issue tags: -Needs usability review

I 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.

john cook’s picture

How 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?

Bojhan’s picture

Nope, 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.

yoroy’s picture

Status: Needs work » Closed (works as designed)
webchick’s picture