Skip to content
This repository
Browse code

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

…/.login
  • Loading branch information...
commit dfed2bcbf5c6b9c077dc61ddd1772ca43a3df077 1 parent df1057d
f00li5h f00li5h authored

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. +5 1 lib/MojoMojo/Controller/Root.pm
6 lib/MojoMojo/Controller/Root.pm
@@ -123,7 +123,11 @@ sub auto : Private {
123 123 return 1;
124 124 }
125 125 if ( !$c->user_exists ) {
126   - $c->res->redirect( $c->uri_for('/.login') );
  126 + $c->res->redirect(
  127 + $c->uri_for(
  128 + $c->stash->{path} . '.login' # send them to the login for this page
  129 + )
  130 + );
127 131 }
128 132 }
129 133

0 comments on commit dfed2bc

Please sign in to comment.
Something went wrong with that request. Please try again.