PacificEMIS / Pacific-SIS

1 stars 3 forks source link

Login issue for users #681

Open ghachey opened 1 week ago

ghachey commented 1 week ago

Many users end up in a condition where they can no longer login. There is no user feedback as to why. Using a proxy yields some missing data coming in the request as shown below.

login-issue-1

I believe I may have identified when this can occur. It seems when a user is logged in and at the same time another user change that user's membership (School Profile) the user will be logged out and never be able to login again with no useful error message. For example, the following scenario can cause this.

  1. User A is School Administrator for School X.
  2. User B is School Administrator for School X.
  3. Both users A and B are logged in and working.
  4. User A changed User B's profile from "School Administrator" to "Admin Assistant".
  5. User B goes away for coffee. Comes back and is no longer able to login.
ghachey commented 1 week ago

This would normally be a blocking bug and make using the application impossible in some cases. But I found a work around. It seems going into the profile of the affected user, saving another profile and then saving back to the desired profile may fix the issue and get the user to be able to login again. But the system needs to be able to handle profile changes more gracefully.