Custom path handling corrections (Daniel Tuecks)

This commit is contained in:
Eric A. Miller
2013-11-14 20:37:47 -05:00
parent c12b54b181
commit 6bb2e3819f
3 changed files with 3 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ use Dancer::Plugin::DBIC;
use Dancer::Plugin::Auth::Extensible;
hook 'before' => sub {
params->{return_url} ||= '/inventory';
params->{return_url} ||= uri_for('/inventory');
if (! session('logged_in_user') && request->path ne uri_for('/login')->path) {
if (setting('trust_x_remote_user') and scalar request->header('X-REMOTE_USER')) {