User tests: Successful: Unsuccessful:
Pull Request for Issue #27262 .
added a check via joomla user plugin onUserBeforeSave
event
No one should be able to register as Super User on registration (frontend).
under these settings a new user can register as Super Users
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Plugins |
I have tested this item
Tests good for the intention of this PR. if the concerns about the error message display need corrected a separate PR can be done for that.
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Pending |
Setting back to pending as the new lang string is neither present in the plugin strings, neither in the installation lang strings.
After correcting these and if merged, TTs have to be informed (via Mig) that the installation lang files will have to be updated.
Category | Front End Plugins | ⇒ | Administration Language & Strings Front End Plugins |
Can someone suggest/correct the text for the language string please
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-02-12 19:27:58 |
Closed_By | ⇒ | alikon | |
Labels |
Added:
?
?
?
|
Status | Closed | ⇒ | New |
Closed_Date | 2020-02-12 19:27:58 | ⇒ | |
Closed_By | alikon | ⇒ | |
Labels |
Added:
?
Removed: ? |
Status | New | ⇒ | Pending |
Labels |
Added:
?
Removed: ? |
I am not convinced this is the correct approach. What you are doing here is to prevent the user being created by one plugin. This wouldn't prevent a user being created if a different plugin was being used. Surely the correct approach is to prevent the situation being created in the first place by preventing a site admin from even being able to configure their site in this way. If there is no way that a guest user can be a super user and no way that a guest user can be a new registered user then the ability to create that scenario should be prevented in the component. Blocking it here is shutting the gate after the horse has bolted.
To explain a bit more, the plugin is importing the options from the component. Any plugin or extension can do that as well and they do. So you need to fix the problemat the source which is the component not the plugin
I think there is an arguement for needing to do this in BOTH the plugin AND the component. As Brian says, it is the component which creates the user, or gives this option. However, there are other extensions/components which also create users, so the more robust approach would be to additionally make this change in the plugin to prevent a SuperUser being created from the front end.
The plugin imports its settings from com_users - therefore if a non core extension is using the plugin it is de facto using the options in the component.
If a non core extension imports the settings itself it is also using the options in the component
If the non core extension is creating users any other ie directly into the database then there is nothing we can do about that.
Therefore there is no need to put any code in the plugin to handle this. It wont make anything more robust - it must all be in the component.
if you disable the joomla user plugin you even are not able to login more
maybe
but just give me 0,01ยข of your time and check it
that is because it is handling sessions and nothing to do with authentication. It is still irrelevant to this pr. the plugin is the wrong place to achieve your aims
i don't claim that this is the better way, that's why the issue is still open #27262 (comment)
I have tested this item
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-02-24 19:46:22 |
Closed_By | ⇒ | alikon | |
Labels |
Removed:
?
|
I have tested this itemโ
successfully on c844021
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27629.