feat: 密码用MD5加密
This commit is contained in:
@@ -43,6 +43,7 @@ import Verify from './components/Verify.vue'
|
||||
import Password from './components/Password.vue'
|
||||
import { showToast } from 'vant'
|
||||
import { precheckEmail, resetPassword } from '@/api/login'
|
||||
import { encryptPassword } from '@/utils/tools'
|
||||
|
||||
const router = useRouter()
|
||||
const step = ref<'mail' | 'verify' | 'password'>('mail')
|
||||
@@ -92,7 +93,7 @@ const handleCheckVerifyCode = (data: any) => {
|
||||
}
|
||||
|
||||
const handleSuccess = (data: any) => {
|
||||
fromData.value.password = data.password
|
||||
fromData.value.password = encryptPassword(data.password)
|
||||
resetPassword(fromData.value).then((res) => {
|
||||
// console.log('res', res)
|
||||
showToast('the password has been reset')
|
||||
|
||||
Reference in New Issue
Block a user