- aggiornati form registrazione

- Login
- Password dimenticata
- Aggiorna password.
- Email registrazione
- Ammetti Utente
This commit is contained in:
Surya Paolo
2025-11-24 17:42:26 +01:00
parent 9faaa1a4c3
commit e9fa53a637
25 changed files with 4440 additions and 1051 deletions

View File

@@ -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,

View File

@@ -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)