Fix Login and Logout that were broken with SSL

This commit is contained in:
Oliver Gorwits
2014-03-04 22:02:31 +00:00
parent ae33fb8550
commit 8f11b043c4
2 changed files with 9 additions and 3 deletions

View File

@@ -51,7 +51,7 @@ post '/login' => sub {
});
return if request->is_ajax;
redirect param('return_url');
redirect param('return_url')->path;
}
else {
session->destroy;
@@ -85,7 +85,7 @@ any ['get', 'post'] => '/logout' => sub {
});
session->destroy;
redirect uri_for('/inventory');
redirect uri_for('/inventory')->path;
};
true;