Changes between Version 1 and Version 2 of Ticket #26957, comment 8


Ignore:
Timestamp:
Aug 9, 2016, 5:49:33 PM (8 years ago)
Author:
Damian

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26957, comment 8

    v1 v2  
     1You are right. So, how about authenticate ''user'' using `authenticate()` method (as in the example provided in the ticket description), then if ''user'' '''is not''' `None` login ''user'' without performing `user.is_active()` check. Else, if ''user'' '''is''' `None` create an if statement, which will allow us to display custom error messages for 'disabled account' and 'invalid login'
Back to Top