mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 19:49:20 +03:00
Improved update/save admin user
This commit is contained in:
parent
a3a20f8820
commit
eb169f73fa
3 changed files with 15 additions and 19 deletions
|
|
@ -71,11 +71,11 @@ export class AdminSettingsSecurity extends AbstractViewSettings {
|
|||
this.adminTOTP(SettingsGet('AdminTOTP'));
|
||||
|
||||
decorateKoCommands(this, {
|
||||
saveNewAdminPasswordCommand: self => self.adminLogin().trim() && self.adminPassword()
|
||||
saveAdminUserCommand: self => self.adminLogin().trim() && self.adminPassword()
|
||||
});
|
||||
}
|
||||
|
||||
saveNewAdminPasswordCommand() {
|
||||
saveAdminUserCommand() {
|
||||
if (!this.adminLogin().trim()) {
|
||||
this.adminLoginError(true);
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue