manage.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:zsky 作者: wenguonideshou 项目源码 文件源码
def changepassword(newpassword):
    name = raw_input(u'?????:')
    thisuser = User.query.filter_by(name=name).first()
    if not thisuser:
        print u"?????,????????!"
        name = raw_input(u'?????:')    
        thisuser = User.query.filter_by(name=name).first()
    if newpassword is None:
        newpassword = generate_password_hash(getpass(u'???:'))
    thisuser.password=newpassword
    db.session.add(thisuser)
    db.session.commit()
    print u"?????,??????!"
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号