Fix Registration

This commit is contained in:
Surya Paolo
2022-12-17 14:12:04 +01:00
parent 2b44dfbcb6
commit 3c2fc4c806
33 changed files with 512 additions and 376 deletions

View File

@@ -3,10 +3,15 @@ import { default as Axios, AxiosResponse } from 'axios'
import { GlobalConfig, PayloadMessageTypes } from '../common'
import { tools } from '../store/Modules/tools'
import { helpers } from '@vuelidate/validators'
const { withAsync } = helpers
// const SITE_URL = GlobalConfig.uri.site
const VALIDATE_USER_URL = process.env.MONGODB_HOST + '/users/'
export function aportadorexist(userName: string) {
export const aportadorexist = withAsync(_aportadorexist)
export function _aportadorexist(userName: string) {
if (userName === tools.APORTADOR_NONE)
return true