- Create an account
+
+
Signup is not enabled on this instance.
-
-
{{ info }}
-
-
diff --git a/client/src/app/+signup/+register/register.component.scss b/client/src/app/+signup/+register/register.component.scss
index fc7ddb0e9..e3ef95609 100644
--- a/client/src/app/+signup/+register/register.component.scss
+++ b/client/src/app/+signup/+register/register.component.scss
@@ -6,6 +6,10 @@
text-align: center;
}
+.signup-disabled {
+ padding-top: 30vh;
+}
+
.wrapper {
display: flex;
flex-direction: column;
diff --git a/client/src/app/+signup/+register/register.component.ts b/client/src/app/+signup/+register/register.component.ts
index d8ac39c7c..bb7276459 100644
--- a/client/src/app/+signup/+register/register.component.ts
+++ b/client/src/app/+signup/+register/register.component.ts
@@ -42,6 +42,8 @@ export class RegisterComponent implements OnInit {
defaultNextStepButtonLabel = $localize`:Button on the registration form to go to the previous step:Next`
stepUserButtonLabel = this.defaultNextStepButtonLabel
+ signupDisabled = false
+
private serverConfig: ServerConfig
constructor (
@@ -62,6 +64,11 @@ export class RegisterComponent implements OnInit {
ngOnInit (): void {
this.serverConfig = this.route.snapshot.data.serverConfig
+ if (this.serverConfig.signup.allowed === false || this.serverConfig.signup.allowedForCurrentIP === false) {
+ this.signupDisabled = true
+ return
+ }
+
this.videoUploadDisabled = this.serverConfig.user.videoQuota === 0
this.stepUserButtonLabel = this.videoUploadDisabled
? $localize`:Button on the registration form to finalize the account and channel creation:Signup`