mirror of
https://github.com/mempool/mempool.git
synced 2025-10-02 10:40:26 +02:00
Merge pull request #5891 from mempool/nymkappa/auth-disabled-user
[auth] better handling of 'disabled' users
This commit is contained in:
@@ -72,7 +72,7 @@ export class ServicesApiServices {
|
||||
this.userSubject$.next(user);
|
||||
}),
|
||||
catchError((e) => {
|
||||
if (e.error === 'User does not exists') {
|
||||
if (e.error === 'invalid_user') {
|
||||
this.userSubject$.next(null);
|
||||
this.logout$().subscribe();
|
||||
return of(null);
|
||||
|
Reference in New Issue
Block a user