求助:密码修改,新密码和确认密码不一致,仍然修改密码成功。
新手,密码修改,新密码和确认密码不一致,仍然修改密码成功。请各位大神帮忙。
pwd_old=alltrim(thisform.text1.value)
pwd_new1=alltrim(thisform.text2.value)
pwd_new2=alltrim(thisform.text3.value)
if pwd_old==""
messagebox("请输入原始密码!!",16,"提示")
thisform.text1.setfocus()
return
endif
if pwd_new1==""
messagebox("请输入修改密码!!",16,"提示")
thisform.text2.setfocus()
return
endif
if pwd_old<>user_pwd
messagebox("您输入原始密码不正确!!",16,"提示")
thisform.text1.setfocus()
return
endif
if pwd_new2==""
messagebox("请输入修改确认密码!!",16,"提示")
thisform.text3.setfocus()
return
endif
if pwd_new1<>pwd_new2
messagebox("您输入确认密码不一致!!",16,"提示")
thisform.text3.setfocus()
return
endif
open database &lcPath\data\student
update student!user set 密码=pwd_new1 where 账号=user_id
user_pwd=pwd_new1
messagebox("修改密码成功!!",32,"提示")
thisform.release