make authN hook more liberal in path check
This commit is contained in:
		| @@ -6,7 +6,7 @@ use Dancer::Plugin::DBIC; | ||||
| use Digest::MD5 (); | ||||
|  | ||||
| hook 'before' => sub { | ||||
|     if (! session('user') && request->path !~ m{^/login}) { | ||||
|     if (! session('user') && request->path !~ m{/login$}) { | ||||
|         if (setting('environment') eq 'development' and setting('no_auth')) { | ||||
|             session(user => 'developer'); | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user