aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-08-27 10:15:55 +0200
committerChocobozzz <me@florianbigard.com>2021-08-27 10:15:55 +0200
commit8f581725651c4b2c213d75fc028e306bbf239d3e (patch)
tree8deb842327c2a227d8e302d9a84bd9f8f9f7affa /server/helpers
parent1ff15061b31245df4248e47228d0a90b07ab3f01 (diff)
downloadPeerTube-8f581725651c4b2c213d75fc028e306bbf239d3e.tar.gz
PeerTube-8f581725651c4b2c213d75fc028e306bbf239d3e.tar.zst
PeerTube-8f581725651c4b2c213d75fc028e306bbf239d3e.zip
Allow accounts to skip account setup modal
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/custom-validators/users.ts9
1 files changed, 2 insertions, 7 deletions
diff --git a/server/helpers/custom-validators/users.ts b/server/helpers/custom-validators/users.ts
index 5b21c3529..f52c60b60 100644
--- a/server/helpers/custom-validators/users.ts
+++ b/server/helpers/custom-validators/users.ts
@@ -81,11 +81,7 @@ function isUserAutoPlayNextVideoPlaylistValid (value: any) {
81 return isBooleanValid(value) 81 return isBooleanValid(value)
82} 82}
83 83
84function isNoInstanceConfigWarningModal (value: any) { 84function isUserNoModal (value: any) {
85 return isBooleanValid(value)
86}
87
88function isNoWelcomeModal (value: any) {
89 return isBooleanValid(value) 85 return isBooleanValid(value)
90} 86}
91 87
@@ -119,6 +115,5 @@ export {
119 isUserAutoPlayNextVideoPlaylistValid, 115 isUserAutoPlayNextVideoPlaylistValid,
120 isUserDisplayNameValid, 116 isUserDisplayNameValid,
121 isUserDescriptionValid, 117 isUserDescriptionValid,
122 isNoInstanceConfigWarningModal, 118 isUserNoModal
123 isNoWelcomeModal
124} 119}