diff options
Diffstat (limited to 'server/helpers/custom-validators/accounts.ts')
-rw-r--r-- | server/helpers/custom-validators/accounts.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/server/helpers/custom-validators/accounts.ts b/server/helpers/custom-validators/accounts.ts index 83540e545..fe0fc650a 100644 --- a/server/helpers/custom-validators/accounts.ts +++ b/server/helpers/custom-validators/accounts.ts | |||
@@ -1,14 +1,11 @@ | |||
1 | import * as Promise from 'bluebird' | 1 | import * as Promise from 'bluebird' |
2 | import * as validator from 'validator' | ||
3 | import * as express from 'express' | 2 | import * as express from 'express' |
4 | import 'express-validator' | 3 | import 'express-validator' |
5 | 4 | import * as validator from 'validator' | |
6 | import { database as db } from '../../initializers' | 5 | import { database as db } from '../../initializers' |
7 | import { AccountInstance } from '../../models' | 6 | import { AccountInstance } from '../../models' |
8 | import { logger } from '../logger' | 7 | import { logger } from '../logger' |
9 | |||
10 | import { isUserUsernameValid } from './users' | 8 | import { isUserUsernameValid } from './users' |
11 | import { isHostValid } from './servers' | ||
12 | 9 | ||
13 | function isAccountNameValid (value: string) { | 10 | function isAccountNameValid (value: string) { |
14 | return isUserUsernameValid(value) | 11 | return isUserUsernameValid(value) |