[dancer-users] Plugin::Auth::Extensible quick patch for logout page
Rick Bragg
rbragg at gmnet.net
Fri Jan 11 18:19:09 GMT 2013
Hi,
May I offer a quick fix for the "any ['get','post'] => $logoutpage => sub" in
Plugin::Auth::Extensible?
----
#add a setting for logout redirect page
my $logoutredirectpage = $settings->{logout_redirect_page} || '/login';
any ['get','post'] => $logoutpage => sub {
session->destroy;
redirect params->{return_url} || $logoutredirectpage;
};
----
Just a quick way for when the logout page is hit with a get, it can go somewhere...
Thanks!
Rick Bragg
More information about the dancer-users
mailing list