X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Flogin%2Flogin.component.ts;h=9a68c12faa4d358c74d01f86c9130c08d1de6b87;hb=e69219184b1a3262ec5e617d30337b6431c9840c;hp=56f992b5d605baa8ce342e86249cf3e6bc01d034;hpb=51d4bcada9ef290ec74b5ffea00635131254ad88;p=github%2FChocobozzz%2FPeerTube.git 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 { .subscribe( () => this.redirectService.redirectToHomepage(), - err => this.error = err.message + err => { + 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 this.error = err.message + } ) }