diff options
author | Chocobozzz <me@florianbigard.com> | 2023-06-05 08:53:31 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-06-05 08:53:31 +0200 |
commit | 4e9a98669fc81b236ff474e101402d6cff81cd1b (patch) | |
tree | 117a447fa43e5eef3207990685056361c70f3f21 /server/middlewares/validators/user-registrations.ts | |
parent | a45e2971f786ede5cfa88118e12d2f5f09eb0286 (diff) | |
download | PeerTube-4e9a98669fc81b236ff474e101402d6cff81cd1b.tar.gz PeerTube-4e9a98669fc81b236ff474e101402d6cff81cd1b.tar.zst PeerTube-4e9a98669fc81b236ff474e101402d6cff81cd1b.zip |
More specific message when signup is not allowed
Diffstat (limited to 'server/middlewares/validators/user-registrations.ts')
-rw-r--r-- | server/middlewares/validators/user-registrations.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/validators/user-registrations.ts b/server/middlewares/validators/user-registrations.ts index fcf655a2c..47397391b 100644 --- a/server/middlewares/validators/user-registrations.ts +++ b/server/middlewares/validators/user-registrations.ts | |||
@@ -59,7 +59,7 @@ function ensureUserRegistrationAllowedFactory (signupMode: SignupMode) { | |||
59 | if (allowedResult.allowed === false) { | 59 | if (allowedResult.allowed === false) { |
60 | return res.fail({ | 60 | return res.fail({ |
61 | status: HttpStatusCode.FORBIDDEN_403, | 61 | status: HttpStatusCode.FORBIDDEN_403, |
62 | message: allowedResult.errorMessage || 'User registration is not enabled, user limit is reached or registration requires approval.' | 62 | message: allowedResult.errorMessage || 'User registration is not allowed' |
63 | }) | 63 | }) |
64 | } | 64 | } |
65 | 65 | ||