nil
This commit is contained in:
parent
7cc372497b
commit
a058b1ba70
@ -1,20 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>MFA Setup</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>MFA Setup</h1>
|
|
||||||
|
|
||||||
<img src="<%= qrCodeImage %>" alt="QR Code">
|
|
||||||
|
|
||||||
<form action="/mfa-setup" method="post">
|
|
||||||
<label for="verificationCode">Enter Verification Code:</label>
|
|
||||||
<input type="text" id="verificationCode" name="verificationCode" required>
|
|
||||||
|
|
||||||
<button type="submit">Verify and Enable MFA</button>
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
14
Sean/views/otp.ejs
Normal file
14
Sean/views/otp.ejs
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>OTP QR Code</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Scan the QR Code to Enable OTP</h1>
|
||||||
|
<p>Hello <%= username %>,</p>
|
||||||
|
<img src="<%= qrCodeDataUrl %>" alt="OTP QR Code">
|
||||||
|
</body>
|
||||||
|
</html>
|
1891
package-lock.json
generated
1891
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -27,6 +27,8 @@
|
|||||||
"mqtt": "^5.3.3",
|
"mqtt": "^5.3.3",
|
||||||
"mysql2": "^3.6.5",
|
"mysql2": "^3.6.5",
|
||||||
"nodemailer": "^6.9.7",
|
"nodemailer": "^6.9.7",
|
||||||
|
"otplib": "^12.0.1",
|
||||||
|
"qrcode": "^1.5.3",
|
||||||
"sequelize": "^6.35.2",
|
"sequelize": "^6.35.2",
|
||||||
"validator": "^13.11.0"
|
"validator": "^13.11.0"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user