Richiesta Cambio Password: ti manda il codice a 6 cifre e poterlo inserire sulla APP.

This commit is contained in:
Surya Paolo
2022-12-11 18:04:11 +01:00
parent cf990db03a
commit c743977b66
9 changed files with 146 additions and 44 deletions

View File

@@ -573,13 +573,14 @@ export const useUserStore = defineStore('UserStore', {
async requestpwd(paramquery: any) {
const usertosend = {
email: paramquery.email,
codetocheck: paramquery.tokenforgot_code,
}
console.log(usertosend)
this.setServerCode(tools.CALLING)
return Api.SendReq('/requestnewpwd', 'POST', usertosend)
.then((res) => ({ code: res.data.code, msg: res.data.msg })).catch((error) => {
.then((res) => ({ code: res.data.code, msg: res.data.msg, link: res.data.link })).catch((error) => {
this.setErrorCatch(error)
return this.getServerCode
})