Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/p/y/PyRfK-HEAD/lib/rfk/site/__init__.py   PyRfK(Download)
 
    if request.method == "POST" and form.validate():
        if current_user.check_password(password=form.old_password.data):
            if form.new_password.data:
                current_user.password = User.make_password(form.new_password.data)

src/f/l/flaskbbs-HEAD/flaskcommon/auth/views.py   flaskbbs(Download)
def changepassword():
    form = ChangePasswordForm(request.form)
    if request.method == 'POST' and form.validate():
        if not current_user.check_password(form.old_password.data):
            form.old_password.errors.append(u'密码错误!')