benvanstaveren / Mojolicious-Plugin-Authentication

A plugin to make authentication a bit easier
http://search.cpan.org/dist/Mojolicious-Plugin-Authentication/
Other
20 stars 17 forks source link

Implements new parameter to control response from routing via condition #14

Closed carragom closed 8 years ago

carragom commented 8 years ago

This implements a new configuration parameter fail_render. The idea is to easily control what will be rendered to the client in case the routing via condition fails. This parameter also exists in Mojolicious-Plugin-Authorization so I guess using the same name makes sense. The parameter is optional and the default behavior is used if not defined.

Not sure if there is a less verbose way to handle the testing. Let me know what you think. Thanks.

benvanstaveren commented 8 years ago

Looks good to me, the testing may be verbose but it does it's job so, that's all good. I'll merge this now and push a release to CPAN today somewhere :)

Thanks!