Richiesta Cambio Password: ti manda il codice a 6 cifre e poterlo inserire sulla APP.
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user