Home Page With Element ! (Modular)
Arcadei Project... Inscription
This commit is contained in:
@@ -4,7 +4,7 @@ import {
|
||||
ICircuit, IMyCircuit,
|
||||
IFriends, IMsgGlobParam,
|
||||
ISigninOptions,
|
||||
ISignupOptions, IUserFields, IUserNotifType, IUserProfile, IUserState, IAccount, IColGridTable,
|
||||
ISignupOptions, IUserFields, IUserNotifType, IUserProfile, IUserState, IAccount, IColGridTable, ISignupIscrizioneConacreisOptions,
|
||||
} from '@src/model'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import translate from '@src/globalroutines/util'
|
||||
@@ -777,6 +777,50 @@ export const useUserStore = defineStore('UserStore', {
|
||||
return arrtokens.filter((token: IToken) => token.access !== 'auth')
|
||||
},
|
||||
|
||||
async iscrivitiConacreis(authData: ISignupIscrizioneConacreisOptions) {
|
||||
console.log('iscrivitiConacreis')
|
||||
|
||||
this.setServerCode(tools.CALLING)
|
||||
|
||||
authData.userId = this.my._id
|
||||
|
||||
return Api.SendReq('/iscritti_conacreis', 'POST', authData)
|
||||
.then((res) => {
|
||||
if (res.status === 200) {
|
||||
return { code: serv_constants.RIS_ISCRIZIONE_OK, msg: '' }
|
||||
} else {
|
||||
return { code: toolsext.ERR_GENERICO, msg: '' }
|
||||
}
|
||||
}).catch((error) => {
|
||||
console.log('Err', error)
|
||||
this.setErrorCatch(error)
|
||||
return { code: this.getServerCode, msg: this.getMsg }
|
||||
})
|
||||
|
||||
},
|
||||
|
||||
async iscrivitiArcadei(authData: ISignupIscrizioneArcadeiOptions) {
|
||||
console.log('iscrivitiArcadei')
|
||||
|
||||
this.setServerCode(tools.CALLING)
|
||||
|
||||
authData.userId = this.my._id
|
||||
|
||||
return Api.SendReq('/iscritti_arcadei', 'POST', authData)
|
||||
.then((res) => {
|
||||
if (res.status === 200) {
|
||||
return { code: serv_constants.RIS_ISCRIZIONE_OK, msg: '' }
|
||||
} else {
|
||||
return { code: toolsext.ERR_GENERICO, msg: '' }
|
||||
}
|
||||
}).catch((error) => {
|
||||
console.log('Err', error)
|
||||
this.setErrorCatch(error)
|
||||
return { code: this.getServerCode, msg: this.getMsg }
|
||||
})
|
||||
|
||||
},
|
||||
|
||||
async signin($router: Router, authData: ISigninOptions) {
|
||||
console.log('LOGIN signin')
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
Reference in New Issue
Block a user