[dancer-users] Custom login page with Dancer2::Plugin::Auth::Extensible

Chris Davies chris at gay.capital
Tue May 2 15:19:09 BST 2017


I set:

no_login_handler: 1

So it doesn't use the default.

Regardsm
Chris.


 ---- On Tue, 02 May 2017 16:50:22 +1000 Stefan Hornburg (Racke) <racke at 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 at dancer.pm 
 > http://lists.preshweb.co.uk/mailman/listinfo/dancer-users 
 > 




More information about the dancer-users mailing list