diff options
author | Chocobozzz <me@florianbigard.com> | 2023-06-05 08:53:31 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-06-05 09:00:47 +0200 |
commit | 8715c76356f3f3a6bce29a65f08743a0aff6be69 (patch) | |
tree | 3e1120b5417e7c4d64bf2d5d2194623db84839ed /server/middlewares | |
parent | f5a12121fe3077648b0e875bb521f122e3d7f277 (diff) | |
download | PeerTube-8715c76356f3f3a6bce29a65f08743a0aff6be69.tar.gz PeerTube-8715c76356f3f3a6bce29a65f08743a0aff6be69.tar.zst PeerTube-8715c76356f3f3a6bce29a65f08743a0aff6be69.zip |
More specific message when signup is not allowed
Diffstat (limited to 'server/middlewares')
-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 | ||