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


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26957, comment 8

    initial v1  
    1 You 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, using following expression: `user.is_active()`; which will allow us to display custom error messages for 'disabled account' and 'invalid login'
Back to Top