You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that with version 1.1.2 the new $loginstatus variable that contains the user and the logout url is not global.
While we can use $kirby->user()->username() to show the logged in status in any template/footer snippet etc, what would be the best way to have access on $loginstatus['logouturl'] ?
I suppose the best would be to extend the User object? But I haven't wrapped my head around all the kirby internals so it's hard to come up with something.
Any idea?
The text was updated successfully, but these errors were encountered:
I guess the easiest is to use this directly in the template: url('/no-permission', ['params' => ['action' => 'logout'], 'query' => ['prevloc' => Url::path()]])
It seems that with version 1.1.2 the new $loginstatus variable that contains the user and the logout url is not global.
While we can use
$kirby->user()->username()
to show the logged in status in any template/footer snippet etc, what would be the best way to have access on$loginstatus['logouturl']
?I suppose the best would be to extend the User object? But I haven't wrapped my head around all the kirby internals so it's hard to come up with something.
Any idea?
The text was updated successfully, but these errors were encountered: