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

Cant register via email in newer kirby versions #3

Open
guidoferreyra opened this issue Jan 19, 2020 · 1 comment
Open

Cant register via email in newer kirby versions #3

guidoferreyra opened this issue Jan 19, 2020 · 1 comment

Comments

@guidoferreyra
Copy link

When the user clicks on the email confirmation button it opens the site buy gets the following error:

Kirby \ Exception \ PermissionException (error.user.changePassword.permission)
You are not allowed to change the password for the user

I think the impersonate function from the route is not working in current kirby versions.

@guidoferreyra
Copy link
Author

I found that if you swap this lines in the the route it works.

// Not working
$kirby->impersonate('kirby');
if ($user = $kirby->user()) {
          $user->logout();
}
// Working
if ($user = $kirby->user()) {
          $user->logout();
}
$kirby->impersonate('kirby');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant