Skip to content

pref('enforce_login') redirects to $requested_path.login rather than /.lo #84

Merged
merged 1 commit into from Sep 2, 2011
View
6 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
+ )
+ );
}
}
Something went wrong with that request. Please try again.