Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New created user cannot be impersonated #2021

fabianmichael opened this issue Aug 20, 2019 · 1 comment


Copy link

commented Aug 20, 2019

Describe the bug
After creating a new user, the internal users cache is not updated. This makes is impossible to impersonate as the new user, until the page has been reloaded.

Example plugin code

$user = $kirby->users()->create([
    'name'  => 'Super User',
    'email' => '',
    'password' => md5(microtime(true)),


Expected behavior
Kirby should impersonate as the new user and the user should appear in the collection, when calling $kirby->users().

Kirby Version

Console output
A Kirby\Exception\NotFoundException is thrown, when trying to impersonate as the new user.

@distantnative distantnative changed the title New users don’t appear in users list until the page is refreshed. New created user cannot be impersonated Aug 23, 2019
@distantnative distantnative added this to the 3.2.5 milestone Aug 23, 2019
@afbora afbora referenced this issue Aug 25, 2019
1 of 4 tasks complete

This comment has been minimized.

Copy link

commented Sep 5, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
You can’t perform that action at this time.