Skip to content

Commit

Permalink
1.109.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectricS01 committed Jan 13, 2025
1 parent a0f7cf6 commit 8f31c0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ app.post("/api/enable-2fa", auth, async (req: RequestUser, res: Response) => {
const otpUri = totp.toString()
const qrCodeDataURL = await QRCode.toDataURL(otpUri)

res.json({ otpUri, qrCodeDataURL })
res.json({ otpUri, qrCodeDataURL, secret: secret.base32 })
})

app.post("/api/verify-2fa", auth, async (req: RequestUser, res: Response) => {
Expand Down

0 comments on commit 8f31c0d

Please sign in to comment.