mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-09 06:52:29 -04:00
Added JSDoc for src/components/settings/*
Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>
This commit is contained in:
parent
07888e43f1
commit
d939d03690
5 changed files with 21 additions and 0 deletions
|
@ -303,6 +303,7 @@ export default {
|
|||
},
|
||||
|
||||
methods: {
|
||||
/** Check new passwords match before saving them */
|
||||
savePassword() {
|
||||
if (this.password.newPassword !== this.password.repeatNewPassword) {
|
||||
this.invalidPassword = true;
|
||||
|
@ -320,6 +321,7 @@ export default {
|
|||
}
|
||||
},
|
||||
|
||||
/** Disable authentication for web app access */
|
||||
disableAuth() {
|
||||
this.settings.disableAuth = true;
|
||||
|
||||
|
@ -332,6 +334,7 @@ export default {
|
|||
}, this.password.currentPassword);
|
||||
},
|
||||
|
||||
/** Enable authentication for web app access */
|
||||
enableAuth() {
|
||||
this.settings.disableAuth = false;
|
||||
this.saveSettings();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue