+ return this.serverConfig.signup.requiresEmailVerification
+ }
+
+ get minimumAge () {
+ return this.serverConfig.signup.minimumAge
+ }
+
+ get instanceName () {
+ return this.serverConfig.instance.name
+ }
+
+ ngOnInit () {
+ this.serverConfig = this.route.snapshot.data.serverConfig
+
+ if (this.serverConfig.signup.allowed === false || this.serverConfig.signup.allowedForCurrentIP === false) {
+ this.signupDisabled = true
+ return
+ }
+
+ this.videoQuota = this.serverConfig.user.videoQuota
+ this.videoUploadDisabled = this.videoQuota === 0
+
+ this.stepUserButtonLabel = this.videoUploadDisabled
+ ? $localize`:Button on the registration form to finalize the account and channel creation:Signup`
+ : this.defaultNextStepButtonLabel
+
+ this.hooks.runAction('action:signup.register.init', 'signup')
+