12345678910 |
- from .flightDB import flightDB
- from unitls.LogerinTxt import app_logger
- def changepassword(loginTabledb:flightDB,user,old,new):
- try:
- newdic={"密码":"'%s'"%new}
- loginTabledb.upDateItem("loginTable",newdic,"登录名='%s' and 密码='%s'"%(user,old))
- loginTabledb.close()
- except Exception as e:
- app_logger.log_error(e)
|