Skip to content

Commit

Permalink
Merge pull request #1480 from ASRKian/lokendra
Browse files Browse the repository at this point in the history
Remove OTP from signup response for improved security
  • Loading branch information
mdazfar2 authored Feb 5, 2025
2 parents 648440d + dd4209b commit cdc9cde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website3.0/src/app/api/signup/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export async function POST(req) {
await send()
let otp = users.get(email)
users.delete(email)
return NextResponse.json({ success: true, otp: otp })
return NextResponse.json({ success: true })
} else {
// for checking the otp
let otp = await users.get(email)
Expand Down

0 comments on commit cdc9cde

Please sign in to comment.