Project

General

Profile

Bug #8622

system_usermanager.php: Group selections not retained when an input error occurs

Added by Andrew Rud 9 months ago. Updated 8 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
User manager
Target version:
Start date:
07/06/2018
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.4.3_1
Affected Architecture:
All

Description

When doing such a simple thing as adding a ssh key, I completely deprived myself of access to webgui or ssh and was able to restore it only with the help of another administrator.

steps:
1. open /system_usermanager.php?act=edit&userid= myuserid
2. make some changes AND make a mistake in filling in the fields (different content of Password and PswdConfirmation fields for example) and press SAVE.
then page will be refreshed with error message on the top; but all my groups have moved from right list "Member of..." to left "Not member of". It's easy not to notice this.
3. fill fields with no mistakes and press SAVE
4. Done! All that you can see under your account now is No page assigned to this user! Click here to logout error page. SSH login is also no longer possible.

Reproduced on Firefox 62Dev, Chrome 69Dev without any script blocker

Associated revisions

Revision 5c3a8a9c (diff)
Added by Stephen Jones 9 months ago

Fixed #8622 It will now revert to whatever was previously saved in the config if there is an input error for user groups

History

#1 Updated by Jim Pingle 9 months ago

  • Project changed from pfSense Packages to pfSense
  • Category set to User manager
  • Status changed from New to Confirmed
  • Affected Architecture set to All

#2 Updated by Jim Pingle 9 months ago

  • Subject changed from loss of groups when editing a user to system_usermanager.php: Group selections not retained when an input error occurs

#3 Updated by Anonymous 9 months ago

  • Assignee set to Anonymous

#4 Updated by Anonymous 9 months ago

  • Status changed from Confirmed to Feedback
  • % Done changed from 0 to 100

#5 Updated by Jim Pingle 8 months ago

  • Status changed from Feedback to Resolved

Looks good now. The page still shows selected groups when I trigger an input error.

Also available in: Atom PDF