fix typo in blocked notice in login
This commit is contained in:
parent
0350384781
commit
afa4456c1a
|
@ -141,7 +141,7 @@ export class LoginComponent extends FormReactive implements OnInit, AfterViewIni
|
||||||
|
|
||||||
private handleError (err: any) {
|
private handleError (err: any) {
|
||||||
if (err.message.indexOf('credentials are invalid') !== -1) this.error = this.i18n('Incorrect username or password.')
|
if (err.message.indexOf('credentials are invalid') !== -1) this.error = this.i18n('Incorrect username or password.')
|
||||||
else if (err.message.indexOf('blocked') !== -1) this.error = this.i18n('You account is blocked.')
|
else if (err.message.indexOf('blocked') !== -1) this.error = this.i18n('Your account is blocked.')
|
||||||
else this.error = err.message
|
else this.error = err.message
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue