#Optimize APP login

#Add XSS filtering in more places
This commit is contained in:
bt.cn
2021-10-16 14:48:55 +08:00
parent ed37b02fff
commit 8138179e68
11 changed files with 126 additions and 305 deletions
+1
View File
@@ -25,6 +25,7 @@ class data:
'''
def setPs(self,get):
id = get.id
get.ps = public.xssencode(get.ps)
if public.M(get.table).where("id=?",(id,)).setField('ps',get.ps):
return public.returnMsg(True,'EDIT_SUCCESS')
return public.returnMsg(False,'EDIT_ERROR')