getkirby-v2 / panel

This is the deprecated admin panel for Kirby v2.
http://getkirby.com
Other
134 stars 70 forks source link

Logging in to the Panel is not possible with a user role defined in a plugin… #1088

Closed texnixe closed 3 years ago

texnixe commented 7 years ago

… if other roles are already present in /site/roles.

samnabi commented 7 years ago

I ran into this issue even when there are no roles present in /site/roles. If there are multiple roles defined by a plugin (using $kirby->set('role', ...), none of them can log in to the panel.

lukasbestle commented 7 years ago

Hm, I can't find the origin of this bug.

The plugin role is loaded correctly in the Panel and the user object is created. The login succeeds but then the user is suddenly logged out again in the same request. But that only happens with users with a role that is defined via the registry.

This is unfortunately one of those bugs that I can't trace back. Could someone else from the team take a look at this?