mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
Improve some login/logout handling
This commit is contained in:
parent
b77854e421
commit
93d8b5a419
4 changed files with 11 additions and 16 deletions
|
|
@ -200,14 +200,7 @@ export class AppUser extends AbstractApp {
|
|||
}
|
||||
|
||||
logout() {
|
||||
Remote.request('Logout', () => {
|
||||
const customLogoutLink = Settings.app('customLogoutLink');
|
||||
if (customLogoutLink) {
|
||||
location.href = customLogoutLink;
|
||||
} else {
|
||||
rl.logoutReload()
|
||||
}
|
||||
});
|
||||
Remote.request('Logout', () => rl.logoutReload(Settings.app('customLogoutLink')));
|
||||
}
|
||||
|
||||
bootstart() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue