'Checks the username/email and password using auth providers.'

def check_password(self, user, password):

    for (provider, options) in self.active_authenticators(user.email, user.username, password):
        if (provider is None):
            log.debug(('Unable    to    find    module:    %s' % options))
        else:
            auth_result = provider.authenticate_user(user, password, options)
            if (auth_result is True):
                return True
            elif (auth_result is None):
                break
    return False
