-
-
Notifications
You must be signed in to change notification settings - Fork 214
Open
Description
Summary:
Once notAllowedError is set in useValidateAuthenticator, it is never cleared, even after a successful login. This causes canAccessMainView to remain false, effectively locking the user out of the CMS until a full page reload.
Steps to Reproduce:
- Set up an
Authenticatorthat returns false or throws an error (e.g. based on user role) - Attempt login with a user who should not have access:
notAllowedErroris set- The error message is correctly displayed
- Log in with a user who should be allowed:
AuthenticatorreturnstrueauthController.useris updated- But
notAllowedErrorremains set canAccessMainViewremainsfalse- User remains stuck in the Login screen
Expected Behavior:
When Authenticator returns true, and a new user is authenticated, the internal notAllowedError should be cleared (e.g. set to false) so that canAccessMainView becomes true and the main CMS interface is shown.
Metadata
Metadata
Assignees
Labels
No labels