mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 03:59:21 +03:00
change AbstractFetchRemote with a better structure
This commit is contained in:
parent
0d809dd574
commit
792fee547a
26 changed files with 265 additions and 723 deletions
|
|
@ -92,7 +92,7 @@ export class SecurityAdminSettings /*extends AbstractViewSettings*/ {
|
|||
this.adminPasswordUpdateError(false);
|
||||
this.adminPasswordUpdateSuccess(false);
|
||||
|
||||
Remote.defaultRequest((iError, data) => {
|
||||
Remote.request('AdminPasswordUpdate', (iError, data) => {
|
||||
if (iError) {
|
||||
this.adminPasswordUpdateError(true);
|
||||
} else {
|
||||
|
|
@ -104,7 +104,7 @@ export class SecurityAdminSettings /*extends AbstractViewSettings*/ {
|
|||
|
||||
this.weakPassword(!!data.Result.Weak);
|
||||
}
|
||||
}, 'AdminPasswordUpdate', {
|
||||
}, {
|
||||
'Login': this.adminLogin(),
|
||||
'Password': this.adminPassword(),
|
||||
'NewPassword': this.adminPasswordNew(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue