Fix Registration
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user