修改密码加密
This commit is contained in:
parent
dfac1f00f4
commit
1eb92e30df
|
|
@ -78,6 +78,7 @@
|
|||
|
||||
import { getTextCode,forgetPwdByCodeApi } from '@/api/login';
|
||||
import AES from '@/utils/aes';
|
||||
import { encryptWithSM4 } from '@/utils/sm'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
|
@ -147,7 +148,8 @@ export default {
|
|||
let param = {
|
||||
"phone": this.form.phone,
|
||||
"code": this.form.code,
|
||||
"newPassword":AES.encrypt(this.form.newPassWord)
|
||||
// "newPassword":AES.encrypt(this.form.newPassWord)
|
||||
"newPassword":encryptWithSM4(this.form.newPassWord)
|
||||
// "newPassword":this.form.newPassWord
|
||||
}
|
||||
forgetPwdByCodeApi(param).then(res => {
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@
|
|||
|
||||
import { getTextCode,resetPwdApi } from '@/api/login';
|
||||
import AES from '@/utils/aes';
|
||||
import { encryptWithSM4 } from '@/utils/sm'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
|
@ -143,7 +144,8 @@ export default {
|
|||
let param = {
|
||||
"phone": this.form.phone,
|
||||
"code": this.form.code,
|
||||
"newPassword":AES.encrypt(this.form.newPassWord)
|
||||
// "newPassword":AES.encrypt(this.form.newPassWord)
|
||||
"newPassword":encryptWithSM4(this.form.newPassWord)
|
||||
// "newPassword":this.form.newPassWord
|
||||
}
|
||||
resetPwdApi(param).then(res => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue