Skip to content

Commit

Permalink
Add default otp
Browse files Browse the repository at this point in the history
  • Loading branch information
denizyesilirmak committed Nov 17, 2023
1 parent feaf810 commit 8a04fcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/auth/auth.route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ router.post('/login/email/otp', async (req: Request, res: Response) => {

//otp found
//check otp
if (otp.otp !== req.body.otp) {
if (otp.otp !== req.body.otp || otp.otp !== '1234') {
return res.status(400).json({
success: false,
message: 'Otp is invalid.',
Expand Down

0 comments on commit 8a04fcd

Please sign in to comment.