Permalink
Browse files

pref('enforce_login') redirects to $requested_path.login rather than …

…/.login
  • Loading branch information...
1 parent df1057d commit dfed2bcbf5c6b9c077dc61ddd1772ca43a3df077 @f00li5h committed Jul 20, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/MojoMojo/Controller/Root.pm
@@ -123,7 +123,11 @@ sub auto : Private {
return 1;
}
if ( !$c->user_exists ) {
- $c->res->redirect( $c->uri_for('/.login') );
+ $c->res->redirect(
+ $c->uri_for(
+ $c->stash->{path} . '.login' # send them to the login for this page
+ )
+ );
}
}

0 comments on commit dfed2bc

Please sign in to comment.