Prevent logout loop on error

This commit is contained in:
the-djmaze 2024-08-13 00:03:12 +02:00
parent 6d477aa6ec
commit 6ad92b9efd

View file

@ -149,7 +149,9 @@ export class AppUser extends AbstractApp {
}
logout() {
Remote.request('Logout', () => rl.logoutReload(Settings.app('customLogoutLink')));
Remote.request('Logout', (iError, data) =>
iError ? alert(data) : rl.logoutReload(Settings.app('customLogoutLink'))
);
}
bootstart() {