Problem/Motivation
A warning is shown on the /admin/config/security-review page, if:
- "authenticated user" is checked under "Untrusted roles"
- "Who can register accounts?" is set to "Administrators only" under
/admin/config/people/accounts
The warning:
You have allowed anonymous users to create accounts without approval so the authenticated role defaults to untrusted.

But this is not true.
Steps to reproduce
Get an erroneous warning message.
Proposed resolution
Update either the wording -- OR -- the check in src/Form/SettingsForm.php, so it matches the reality.
Remaining tasks
Figure out if the wording, or the code needs to be updated.
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|
Issue fork security_review-3558486
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
ritarshi_chakraborty commentedHi @ressa, can you please share screenshot of the warning? Because I don't see any such warning on my system.
Comment #3
ressaSure, I have added it in the Issue Summary.
Comment #6
smustgrave commentedThink we can just drop most of this, seems to be leftover from a D8 port. Not even checking the setting
Comment #7
ritarshi_chakraborty commentedYes @ressa, I see the message. Thank you @smustgrave for fixing it.
Comment #8
ritarshi_chakraborty commentedMoving this issue to RTBC.
Comment #9
ressaThanks, great to get this cleaned up!
I think it's good practice to only allow administrator to create accounts, and looked around but couldn't find a check for this, so I created #3558703: Add account creation check .
Comment #11
smustgrave commented