Did I find the right examples for you? yes no

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

src/f/l/flask-security-HEAD/flask_security/forms.py   flask-security(Download)
 
from .confirmable import requires_confirmation
from .utils import verify_and_update_password, get_message, config_value, validate_redirect_url
 
# Convenient reference
            self.password.errors.append(get_message('PASSWORD_NOT_SET')[0])
            return False
        if not verify_and_update_password(self.password.data, self.user):
            self.password.errors.append(get_message('INVALID_PASSWORD')[0])
            return False
    def validate(self):
        if not super(ChangePasswordForm, self).validate():
            return False
 
        if not verify_and_update_password(self.password.data, current_user):

src/f/l/Flask-Security-1.7.1/flask_security/forms.py   Flask-Security(Download)
 
from .confirmable import requires_confirmation
from .utils import verify_and_update_password, get_message, config_value
 
# Convenient reference
            self.password.errors.append(get_message('PASSWORD_NOT_SET')[0])
            return False
        if not verify_and_update_password(self.password.data, self.user):
            self.password.errors.append(get_message('INVALID_PASSWORD')[0])
            return False
            self.password.errors.append(get_message('PASSWORD_NOT_PROVIDED')[0])
            return False
        if not verify_and_update_password(self.password.data, current_user):
            self.password.errors.append(get_message('INVALID_PASSWORD')[0])
            return False