Thanks Stefan - you're right. It's "no_default_pages: 1" I needed, and it's now working - thanks :-)
-N

On 2 May 2017 at 16:50, Stefan Hornburg (Racke) <racke@linuxia.de> wrote:
On 05/01/2017 09:42 AM, Nathan Bailey wrote:
> Per the
> documentation, http://search.cpan.org/~hornburg/Dancer2-Plugin-Auth-Extensible-0.703/lib/Dancer2/Plugin/Auth/Extensible.pm#SAMPLE_CONFIGURATION
> in my .yml config, I have:
> plugins:
>     Auth::Extensible:
>         # Set the view name for a custom login page, defaults to 'login'
>         login_template: login
>
> but my login page:
> get '/login' => sub {
> ...
>
>     template 'login', {
> ...
>     };
> };
>
> doesn't seem to get called.
>
> I've tried "login_template: /login" but the default login is still getting loaded.
>
> Any ideas?
>
> thanks!
> Nathan

Hello Nathan,

I think you are mixing the concepts of the login template and the login route.

This is covered here:

http://search.cpan.org/~hornburg/Dancer2-Plugin-Auth-Extensible-0.703/lib/Dancer2/Plugin/Auth/Extensible.pm#CUSTOMISING_/login_AND_/login/denied

If you just want a custom login template, don't use an extra route for login.

Regards
        Racke



--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration.
_______________________________________________
dancer-users mailing list
dancer-users@dancer.pm
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users