- aggiornati form registrazione
- Login - Password dimenticata - Aggiorna password. - Email registrazione - Ammetti Utente
This commit is contained in:
@@ -6,6 +6,9 @@ export const serv_constants = {
|
||||
RIS_CODE_EMAIL_ALREADY_VERIFIED: -5,
|
||||
RIS_CODE_EMAIL_VERIFIED: 1,
|
||||
|
||||
RIS_CODE_AMMESSO: 1,
|
||||
RIS_CODE_GIA_AMMESSO: -5,
|
||||
|
||||
RIS_CODE_REC_DUPLICATED_DESCR_CITY_USER: -110,
|
||||
RIS_CODE_REC_ALREADY_EXIST_SYMBOL: -102,
|
||||
RIS_CODE_REC_ALREADY_EXIST_CODE: -101,
|
||||
|
||||
@@ -19,7 +19,7 @@ import type {
|
||||
import { IFriends, ISettings } from '@src/model';
|
||||
import { tools } from '@tools';
|
||||
import translate from '@src/globalroutines/util';
|
||||
import type { ILinkReg, IToken } from '@model/other';
|
||||
import type { IAmmetti, ILinkReg, IToken } from '@model/other';
|
||||
import { ICallResult, IResult } from '@model/other';
|
||||
|
||||
import objectId from '@src/js/objectId';
|
||||
@@ -1111,6 +1111,31 @@ export const useUserStore = defineStore('UserStore', {
|
||||
return { code: this.getServerCode, msg: error.getMsgError() };
|
||||
});
|
||||
},
|
||||
async ammetti(paramquery: IAmmetti) {
|
||||
const usertosend = {
|
||||
token: paramquery.token,
|
||||
username: paramquery.username,
|
||||
};
|
||||
console.log(usertosend);
|
||||
|
||||
this.setServerCode(tools.CALLING);
|
||||
|
||||
return Api.SendReq('/ammetti', 'POST', usertosend)
|
||||
.then((res) => {
|
||||
// console.log("RITORNO 2 ");
|
||||
// mutations.setServerCode(myres);
|
||||
if (res.data.code === serv_constants.RIS_CODE_AMMESSO) {
|
||||
console.log('AMMESSO !!');
|
||||
} else {
|
||||
console.log('Risultato di ammetti: ', res.data.code);
|
||||
}
|
||||
return { code: res.data.code, msg: res.data.msg };
|
||||
})
|
||||
.catch((error) => {
|
||||
this.setErrorCatch(error);
|
||||
return { code: this.getServerCode, msg: error.getMsgError() };
|
||||
});
|
||||
},
|
||||
|
||||
async unsubscribe(paramquery: any) {
|
||||
return Api.SendReq('/news/unsubscribe', 'POST', paramquery)
|
||||
|
||||
Reference in New Issue
Block a user