Re: confirm_login_allowed in subclassed authentication returns wrong error message

2015-02-22 Thread Tomáš Sekanina
Apologies, my mistake after all (as it is usually:)). I've just finally found out that the login function from django.contrib.auth uses my own template where this message is displayed whenever there is error in the form. Dne úterý 17. února 2015 21:00:15 UTC+1 Tomáš Sekanina napsal

Re: confirm_login_allowed in subclassed authentication returns wrong error message

2015-02-18 Thread Tomáš Sekanina
m when attempting > to authenticate the user, not directly from the custom user model or > authentication backend. > > -James > On Feb 17, 2015 12:20 PM, "Tomáš Sekanina" <sekanin...@gmail.com > > wrote: > >> Hello, >> >> I have a custom user

confirm_login_allowed in subclassed authentication returns wrong error message

2015-02-17 Thread Tomáš Sekanina
Hello, I have a custom user model and I need to extend the user authentication during login and found this solution: http://bit.ly/1u705o9 It would work great for me and I ended up implementing this . It works in a manner that it does not let such user log in,