diff options
Diffstat (limited to 'server/helpers')
-rw-r--r-- | server/helpers/custom-validators/misc.js | 4 | ||||
-rw-r--r-- | server/helpers/custom-validators/pods.js | 2 | ||||
-rw-r--r-- | server/helpers/custom-validators/users.js | 6 | ||||
-rw-r--r-- | server/helpers/custom-validators/videos.js | 22 | ||||
-rw-r--r-- | server/helpers/peertube-crypto.js | 14 | ||||
-rw-r--r-- | server/helpers/requests.js | 4 | ||||
-rw-r--r-- | server/helpers/utils.js | 4 |
7 files changed, 28 insertions, 28 deletions
diff --git a/server/helpers/custom-validators/misc.js b/server/helpers/custom-validators/misc.js index 782ae3dee..052726241 100644 --- a/server/helpers/custom-validators/misc.js +++ b/server/helpers/custom-validators/misc.js | |||
@@ -1,8 +1,8 @@ | |||
1 | 'use strict' | 1 | 'use strict' |
2 | 2 | ||
3 | const miscValidators = { | 3 | const miscValidators = { |
4 | exists: exists, | 4 | exists, |
5 | isArray: isArray | 5 | isArray |
6 | } | 6 | } |
7 | 7 | ||
8 | function exists (value) { | 8 | function exists (value) { |
diff --git a/server/helpers/custom-validators/pods.js b/server/helpers/custom-validators/pods.js index 28d04a05d..40f8b5d0b 100644 --- a/server/helpers/custom-validators/pods.js +++ b/server/helpers/custom-validators/pods.js | |||
@@ -5,7 +5,7 @@ const validator = require('express-validator').validator | |||
5 | const miscValidators = require('./misc') | 5 | const miscValidators = require('./misc') |
6 | 6 | ||
7 | const podsValidators = { | 7 | const podsValidators = { |
8 | isEachUniqueUrlValid: isEachUniqueUrlValid | 8 | isEachUniqueUrlValid |
9 | } | 9 | } |
10 | 10 | ||
11 | function isEachUniqueUrlValid (urls) { | 11 | function isEachUniqueUrlValid (urls) { |
diff --git a/server/helpers/custom-validators/users.js b/server/helpers/custom-validators/users.js index 0e92989e5..88fa1592e 100644 --- a/server/helpers/custom-validators/users.js +++ b/server/helpers/custom-validators/users.js | |||
@@ -7,9 +7,9 @@ const constants = require('../../initializers/constants') | |||
7 | const USERS_CONSTRAINTS_FIELDS = constants.CONSTRAINTS_FIELDS.USERS | 7 | const USERS_CONSTRAINTS_FIELDS = constants.CONSTRAINTS_FIELDS.USERS |
8 | 8 | ||
9 | const usersValidators = { | 9 | const usersValidators = { |
10 | isUserPasswordValid: isUserPasswordValid, | 10 | isUserPasswordValid, |
11 | isUserRoleValid: isUserRoleValid, | 11 | isUserRoleValid, |
12 | isUserUsernameValid: isUserUsernameValid | 12 | isUserUsernameValid |
13 | } | 13 | } |
14 | 14 | ||
15 | function isUserPasswordValid (value) { | 15 | function isUserPasswordValid (value) { |
diff --git a/server/helpers/custom-validators/videos.js b/server/helpers/custom-validators/videos.js index ebe927208..a507ff686 100644 --- a/server/helpers/custom-validators/videos.js +++ b/server/helpers/custom-validators/videos.js | |||
@@ -8,17 +8,17 @@ const miscValidators = require('./misc') | |||
8 | const VIDEOS_CONSTRAINTS_FIELDS = constants.CONSTRAINTS_FIELDS.VIDEOS | 8 | const VIDEOS_CONSTRAINTS_FIELDS = constants.CONSTRAINTS_FIELDS.VIDEOS |
9 | 9 | ||
10 | const videosValidators = { | 10 | const videosValidators = { |
11 | isEachRemoteVideosValid: isEachRemoteVideosValid, | 11 | isEachRemoteVideosValid, |
12 | isVideoAuthorValid: isVideoAuthorValid, | 12 | isVideoAuthorValid, |
13 | isVideoDateValid: isVideoDateValid, | 13 | isVideoDateValid, |
14 | isVideoDescriptionValid: isVideoDescriptionValid, | 14 | isVideoDescriptionValid, |
15 | isVideoDurationValid: isVideoDurationValid, | 15 | isVideoDurationValid, |
16 | isVideoMagnetUriValid: isVideoMagnetUriValid, | 16 | isVideoMagnetUriValid, |
17 | isVideoNameValid: isVideoNameValid, | 17 | isVideoNameValid, |
18 | isVideoPodUrlValid: isVideoPodUrlValid, | 18 | isVideoPodUrlValid, |
19 | isVideoTagsValid: isVideoTagsValid, | 19 | isVideoTagsValid, |
20 | isVideoThumbnailValid: isVideoThumbnailValid, | 20 | isVideoThumbnailValid, |
21 | isVideoThumbnail64Valid: isVideoThumbnail64Valid | 21 | isVideoThumbnail64Valid |
22 | } | 22 | } |
23 | 23 | ||
24 | function isEachRemoteVideosValid (requests) { | 24 | function isEachRemoteVideosValid (requests) { |
diff --git a/server/helpers/peertube-crypto.js b/server/helpers/peertube-crypto.js index 4783e9965..1ff638b04 100644 --- a/server/helpers/peertube-crypto.js +++ b/server/helpers/peertube-crypto.js | |||
@@ -12,13 +12,13 @@ const logger = require('./logger') | |||
12 | const algorithm = 'aes-256-ctr' | 12 | const algorithm = 'aes-256-ctr' |
13 | 13 | ||
14 | const peertubeCrypto = { | 14 | const peertubeCrypto = { |
15 | checkSignature: checkSignature, | 15 | checkSignature, |
16 | comparePassword: comparePassword, | 16 | comparePassword, |
17 | createCertsIfNotExist: createCertsIfNotExist, | 17 | createCertsIfNotExist, |
18 | cryptPassword: cryptPassword, | 18 | cryptPassword, |
19 | decrypt: decrypt, | 19 | decrypt, |
20 | encrypt: encrypt, | 20 | encrypt, |
21 | sign: sign | 21 | sign |
22 | } | 22 | } |
23 | 23 | ||
24 | function checkSignature (publicKey, rawData, hexSignature) { | 24 | function checkSignature (publicKey, rawData, hexSignature) { |
diff --git a/server/helpers/requests.js b/server/helpers/requests.js index f76ff3473..95775c981 100644 --- a/server/helpers/requests.js +++ b/server/helpers/requests.js | |||
@@ -7,8 +7,8 @@ const constants = require('../initializers/constants') | |||
7 | const peertubeCrypto = require('./peertube-crypto') | 7 | const peertubeCrypto = require('./peertube-crypto') |
8 | 8 | ||
9 | const requests = { | 9 | const requests = { |
10 | makeRetryRequest: makeRetryRequest, | 10 | makeRetryRequest, |
11 | makeSecureRequest: makeSecureRequest | 11 | makeSecureRequest |
12 | } | 12 | } |
13 | 13 | ||
14 | function makeRetryRequest (params, callback) { | 14 | function makeRetryRequest (params, callback) { |
diff --git a/server/helpers/utils.js b/server/helpers/utils.js index a77116e08..9c2d402e3 100644 --- a/server/helpers/utils.js +++ b/server/helpers/utils.js | |||
@@ -5,8 +5,8 @@ const crypto = require('crypto') | |||
5 | const logger = require('./logger') | 5 | const logger = require('./logger') |
6 | 6 | ||
7 | const utils = { | 7 | const utils = { |
8 | cleanForExit: cleanForExit, | 8 | cleanForExit, |
9 | generateRandomString: generateRandomString | 9 | generateRandomString |
10 | } | 10 | } |
11 | 11 | ||
12 | function generateRandomString (size, callback) { | 12 | function generateRandomString (size, callback) { |