From c4f78d776e166e7372ecd13c47c9d36c9b7667a7 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Sun, 12 Sep 2021 02:25:51 +0800 Subject: [PATCH] [2fa] "UptimeKuma" to "Uptime Kuma" --- server/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server.js b/server/server.js index a35e29246..a0b9a2fbb 100644 --- a/server/server.js +++ b/server/server.js @@ -281,7 +281,7 @@ let indexHTML = fs.readFileSync("./dist/index.html").toString(); if (user.twofa_status == 0) { let newSecret = await genSecret() let encodedSecret = base32.encode(newSecret); - let uri = `otpauth://totp/UptimeKuma:${user.username}?secret=${encodedSecret}`; + let uri = `otpauth://totp/Uptime%20Kuma:${user.username}?secret=${encodedSecret}`; await R.exec("UPDATE `user` SET twofa_secret = ? WHERE id = ? ", [ newSecret,