mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-24 07:14:04 +00:00
[2fa] "UptimeKuma" to "Uptime Kuma"
This commit is contained in:
parent
295ccba44b
commit
c4f78d776e
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ let indexHTML = fs.readFileSync("./dist/index.html").toString();
|
||||||
if (user.twofa_status == 0) {
|
if (user.twofa_status == 0) {
|
||||||
let newSecret = await genSecret()
|
let newSecret = await genSecret()
|
||||||
let encodedSecret = base32.encode(newSecret);
|
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 = ? ", [
|
await R.exec("UPDATE `user` SET twofa_secret = ? WHERE id = ? ", [
|
||||||
newSecret,
|
newSecret,
|
||||||
|
|
Loading…
Reference in a new issue