aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/login/login.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/login/login.component.ts')
-rw-r--r--client/src/app/login/login.component.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/app/login/login.component.ts b/client/src/app/login/login.component.ts
index 56f992b5d..9a68c12fa 100644
--- a/client/src/app/login/login.component.ts
+++ b/client/src/app/login/login.component.ts
@@ -55,7 +55,11 @@ export class LoginComponent extends FormReactive implements OnInit {
55 .subscribe( 55 .subscribe(
56 () => this.redirectService.redirectToHomepage(), 56 () => this.redirectService.redirectToHomepage(),
57 57
58 err => this.error = err.message 58 err => {
59 if (err.message.indexOf('credentials are invalid') !== -1) this.error = this.i18n('Incorrect username or password.')
60 else if (err.message.indexOf('blocked') !== -1) this.error = this.i18n('You account is blocked.')
61 else this.error = err.message
62 }
59 ) 63 )
60 } 64 }
61 65