import { Component, OnInit } from '@angular/core'
-import { ActivatedRoute, Router } from '@angular/router'
+import { Router } from '@angular/router'
import { ConfigService } from '@app/+admin/config/shared/config.service'
import { AuthService, Notifier, ScreenService, ServerService, UserService } from '@app/core'
import {
protected configService: ConfigService,
protected screenService: ScreenService,
protected auth: AuthService,
- private route: ActivatedRoute,
private router: Router,
private notifier: Notifier,
private userService: UserService
}
isPasswordOptional () {
- const serverConfig = this.route.snapshot.data.serverConfig
- return serverConfig.email.enabled
+ return this.serverConfig.email.enabled
}
getFormButtonTitle () {