Skip to content

Commit b0ad950

Browse files
committed
feat: revamp Landing Page and enhance OTP verification flow
- Revamped Landing Page: Modern UI, Bento Grid, Interactive Demo, FAQ, and detailed 'How it Works' section. - Frontend: Added Inter and JetBrains Mono fonts. - Backend: Updated /verify-otp to return fresh JWT with isVerified:true.
1 parent 140f6f0 commit b0ad950

3 files changed

Lines changed: 543 additions & 354 deletions

File tree

backend/routes/auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ router.post('/verify-otp', async (req, res) => {
167167
await existingUser.save();
168168

169169
// Generate new token with isVerified: true
170-
const token = jwt.sign({ _id: existingUser._id, isVerified: true }, process.env.JWT_SECRET);
170+
const token = jwt.sign({ _id: existingUser._id, isVerified: existingUser.isVerified }, process.env.JWT_SECRET);
171171

172172
res.status(200).json({ message: "OTP verified successfully", token });
173173
} catch (err) {

frontend/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
<link rel="icon" type="image/png" href="/logo_u.png" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>urBackend | Instant Backend for Developers</title>
8+
<!-- Google Fonts -->
9+
<link rel="preconnect" href="https://fonts.googleapis.com">
10+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
11+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap" rel="stylesheet">
812
</head>
913
<body>
1014
<div id="root"></div>

0 commit comments

Comments
 (0)