})
export class LoginComponent extends FormReactive implements OnInit {
+ @ViewChild('emailInput') input: ElementRef
@ViewChild('forgotPasswordModal') forgotPasswordModal: ElementRef
@ViewChild('forgotPasswordEmailInput') forgotPasswordEmailInput: ElementRef
username: this.loginValidatorsService.LOGIN_USERNAME,
password: this.loginValidatorsService.LOGIN_PASSWORD
})
+
+ this.input.nativeElement.focus()
}
login () {
askResetPassword () {
this.userService.askResetPassword(this.forgotPasswordEmail)
.subscribe(
- res => {
+ () => {
const message = this.i18n(
'An email with the reset password instructions will be sent to {{email}}.',
{ email: this.forgotPasswordEmail }