'Ensures the user has an active account.
Optimized for the ``django.contrib.auth.models.User`` case.'

def check_active(self, user):

    if (not self.require_active):
        return True
    return user.is_active
