diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-08 14:58:21 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-08 15:22:58 +0200 |
commit | e69219184b1a3262ec5e617d30337b6431c9840c (patch) | |
tree | 959b32e1ed28047052604941870563e946be9de1 /client/src/app | |
parent | 6b09aba90dfe4c61331b66b1a6ef1f58ddc61485 (diff) | |
download | PeerTube-e69219184b1a3262ec5e617d30337b6431c9840c.tar.gz PeerTube-e69219184b1a3262ec5e617d30337b6431c9840c.tar.zst PeerTube-e69219184b1a3262ec5e617d30337b6431c9840c.zip |
Implement user blocking on server side
Diffstat (limited to 'client/src/app')
-rw-r--r-- | client/src/app/login/login.component.ts | 6 |
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 | ||