|
@@ -3,6 +3,7 @@ import { useRouter } from "vue-router"
|
|
|
import {checkPassWord} from '@/utils/common'
|
|
|
import {apiSystemUser} from '@/api/system'
|
|
|
import { Base64 } from 'js-base64'
|
|
|
+import md5 from 'js-md5'
|
|
|
|
|
|
const router = useRouter()
|
|
|
|
|
@@ -54,9 +55,9 @@ async function addSubmit() {
|
|
|
}
|
|
|
|
|
|
const res = await apiSystemUser.modifyPwd({
|
|
|
- OriginPassword:Base64.encode(addForm.OldPwd),
|
|
|
- Password:Base64.encode(addForm.NewPwd),
|
|
|
- RePassword:Base64.encode(addForm.twoNewPwd),
|
|
|
+ OriginPassword:md5(Base64.encode(addForm.OldPwd)),
|
|
|
+ Password:md5(Base64.encode(addForm.NewPwd)),
|
|
|
+ RePassword:md5(Base64.encode(addForm.twoNewPwd)),
|
|
|
})
|
|
|
if (res.Ret == 200) {
|
|
|
ElMessage.success("修改密码成功,请重新登录!");
|