mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-09-13 23:17:00 +08:00
Fix #1577
This commit is contained in:
867
package-lock.json
generated
867
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1047,7 +1047,13 @@ try {
|
|||||||
try {
|
try {
|
||||||
checkLogin(socket);
|
checkLogin(socket);
|
||||||
|
|
||||||
if (data.disableAuth) {
|
// If currently is disabled auth, don't need to check
|
||||||
|
// Disabled Auth + Want to Disable Auth => No Check
|
||||||
|
// Disabled Auth + Want to Enable Auth => No Check
|
||||||
|
// Enabled Auth + Want to Disable Auth => Check!!
|
||||||
|
// Enabled Auth + Want to Enable Auth => No Check
|
||||||
|
const currentDisabledAuth = await setting("disableAuth");
|
||||||
|
if (!currentDisabledAuth && data.disableAuth) {
|
||||||
await doubleCheckPassword(socket, currentPassword);
|
await doubleCheckPassword(socket, currentPassword);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user