kboss/b/user/updateuserpassword.dspy
2025-07-16 14:27:17 +08:00

13 lines
420 B
Plaintext

async def updateuserpassword(ns):
"""管理员修改密码"""
db = DBPools()
async with db.sqlorContext('kboss') as sor:
try:
ns['password'] = password_encode(ns['password'])
await sor.U('users',ns)
return {'status': True, 'msg': '成功'}
except:
return {'status': False, 'msg': '失败'}
ret = await updateuserpassword(params_kw)
return ret