Closed bfjare closed 4 years ago
I will look into this but I noticed your value param on password has 3 double quotes instead of 2. Not sure if that would make a difference, but you should fix it anyways.
On Jan 24, 2019, at 5:24 PM, Ben Fjare notifications@github.com wrote:
Getting this issue when registering a new user
Unauthorized This action may only be performed with an elevated session. This is the form I am using
Plugin currently is set with full group access. I've tried it with the group handle and id, I see craft3 does it by id in the control panel. When the form is submitted the user is created but not assigned to any groups. I feel like its a permissions error but I cant find anything missing. Especially with it creating the user succesfully.
Craft Version: 3.1.3
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kinoli/groupie/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/AADwLu-qOuCoCy_4_dMGhl4cEYrgqgdLks5vGk7KgaJpZM4aR-Ah.
I just tried your form in a local craft install and it works fine for me and adds the users to their selected groups. The issue must be a setting. Have you turned on “Allow Public Registration” in the backend user settings?
On Jan 24, 2019, at 5:24 PM, Ben Fjare notifications@github.com wrote:
Getting this issue when registering a new user
Unauthorized This action may only be performed with an elevated session. This is the form I am using
Plugin currently is set with full group access. I've tried it with the group handle and id, I see craft3 does it by id in the control panel. When the form is submitted the user is created but not assigned to any groups. I feel like its a permissions error but I cant find anything missing. Especially with it creating the user succesfully.
Craft Version: 3.1.3
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kinoli/groupie/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/AADwLu-qOuCoCy_4_dMGhl4cEYrgqgdLks5vGk7KgaJpZM4aR-Ah.
I'm sure its a setting issue just can't find what it is. I do have that setting on. The quotes on the password field is a copy / paste typo.
The person registering the user is logged in would that create an issue?
Can you try adding this to config/general.php?
'elevatedSessionDuration' => 0
I don't see this as a permanent fix and I will look into a cleaner fix when I get some time. Hopefully soon.
Confirming this works with the config edit
Getting this issue when registering a new user
This is the form I am using
Plugin currently is set with full group access. I've tried it with the group handle and id, I see craft3 does it by id in the control panel. When the form is submitted the user is created but not assigned to any groups. I feel like its a permissions error but I cant find anything missing. Especially with it creating the user succesfully.
Craft Version: 3.1.3