Did QA with TryOrchardCore.Web src.
Repro steps:
Build SAAS recipe orchard core site

Login to admin
Go to Security - > users, and edit user you specify on setup

Save the user

User disabled.

Yep this is a funny one. I did that code. Though you should be able to disable an administrator account but not if it's the last one enabled.
And I'm looking at your screens and it seems that from that form it should have kept the user as enabled. So, your issue is that you have a custom Handler that sets the User as disabled.
Yep this is a funny one. I did that code. Though you should be able to disable an administrator account but not if it's the last one enabled.
For sure if you want to disable "yourself" :-)
And I'm looking at your screens and it seems that from that form it should have kept the user as enabled. So, your issue is that you have a custom Handler that sets the User as disabled.
I agree, looks like that something happen behind the scene,
the problem is that this this pure code i take from orchard github.
https://github.com/OrchardCMS/TryOrchardCore
I didint make any custom dev...
You should not be able to disable "yourself" as the "disabled" button is disabled 馃ぃ
Hmm TryOrchardCore surely needs an update 馃槈
Report the issue there as I can't repro in the dev branch of this repository
Hmm TryOrchardCore surely needs an update 馃槈
Report the issue there as I can't repro in the dev branch of this repository
Did you try clean setup?
remove App_data and recreate it?
Yes I did a git clean -xdf on the folder. Though I did not recreate the database and tenants as it should not really matter.
Yes I did a
git clean -xdfon the folder. Though I did not recreate the database and tenants as it should not really matter.
I think it is,
Its happen only for first user in the system,
When i added second admin and sis the same scenario, it was ok.
Can you backup your add_data and create one new for sec?
Ok doing it.
Ok I can repro, I understand the issue now.
Ok I can repro, I understand the issue now.
Nice one :-)
You should not be able to disable "yourself" as the "disabled" button is disabled
If I'm not wrong I fix this issue in OC, @Skrypt did you reproduce it in OC or try.OC?
OC
The admin can disable him/her self ;)
I remembered I fix a delete issue not enable/disable user, I can handle this if no one start on it
The issue is that when the HTML checkbox slider component is set to disable it returns a false value everytime (this is something that changed).
We should validate these things on server side to make this bulletproof.
I see, if you didn't start I can have a look and fix it
where can I contact some devs of OrchardCore about a privilege escalation that I have found...
//cc @sebastienros
//cc @sebastienros
Thanks, reported and acknowledged by dev.
Most helpful comment
Ok I can repro, I understand the issue now.