aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators/accounts.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-23 18:04:48 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-27 19:40:53 +0100
commitd4f1e94c89336255537b0b82913591f00e716201 (patch)
treec7d18e09a4f53eafc61de8cb0692c020b197512d /server/helpers/custom-validators/accounts.ts
parent8d468a16fd33ec2660c3c59b3f7def53eb0cc4a1 (diff)
downloadPeerTube-d4f1e94c89336255537b0b82913591f00e716201.tar.gz
PeerTube-d4f1e94c89336255537b0b82913591f00e716201.tar.zst
PeerTube-d4f1e94c89336255537b0b82913591f00e716201.zip
Misc cleanup
Diffstat (limited to 'server/helpers/custom-validators/accounts.ts')
-rw-r--r--server/helpers/custom-validators/accounts.ts5
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 @@
1import * as Promise from 'bluebird' 1import * as Promise from 'bluebird'
2import * as validator from 'validator'
3import * as express from 'express' 2import * as express from 'express'
4import 'express-validator' 3import 'express-validator'
5 4import * as validator from 'validator'
6import { database as db } from '../../initializers' 5import { database as db } from '../../initializers'
7import { AccountInstance } from '../../models' 6import { AccountInstance } from '../../models'
8import { logger } from '../logger' 7import { logger } from '../logger'
9
10import { isUserUsernameValid } from './users' 8import { isUserUsernameValid } from './users'
11import { isHostValid } from './servers'
12 9
13function isAccountNameValid (value: string) { 10function isAccountNameValid (value: string) {
14 return isUserUsernameValid(value) 11 return isUserUsernameValid(value)