mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Also reduce admin remote fetch
This commit is contained in:
parent
c1228d09f0
commit
35bce8cf62
11 changed files with 148 additions and 260 deletions
|
|
@ -43,7 +43,7 @@ class LoginAdminView extends AbstractViewLogin {
|
|||
if (valid) {
|
||||
this.submitRequest(true);
|
||||
|
||||
Remote.adminLogin(
|
||||
Remote.request('AdminLogin',
|
||||
(iError, oData) => {
|
||||
if (iError) {
|
||||
this.submitRequest(false);
|
||||
|
|
@ -51,11 +51,11 @@ class LoginAdminView extends AbstractViewLogin {
|
|||
} else {
|
||||
rl.setData(oData.Result);
|
||||
}
|
||||
},
|
||||
name,
|
||||
pass,
|
||||
this.totp()
|
||||
);
|
||||
}, {
|
||||
Login: name,
|
||||
Password: pass,
|
||||
TOTP: this.totp()
|
||||
});
|
||||
}
|
||||
|
||||
return valid;
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ class PaneSettingsAdminView extends AbstractViewRight {
|
|||
}
|
||||
|
||||
logoutClick() {
|
||||
Remote.adminLogout(() => rl.logoutReload());
|
||||
Remote.request('AdminLogout', () => rl.logoutReload());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue