Skip to content

Commit 6900ff6

Browse files
authored
Update app.js
1 parent 24b3b92 commit 6900ff6

File tree

1 file changed

+3
-3
lines changed
  • using nodemailer for 2 way authentication

1 file changed

+3
-3
lines changed

using nodemailer for 2 way authentication/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ app.post('/send',function(req,res){
5050
service : 'Gmail',
5151

5252
auth: {
53-
user: 'sarthakmittal1461@gmail.com',
54-
pass: 'S@rth@k09',
53+
user: 'YOUR MAIL',
54+
pass: 'MAIL PASSWORD',
5555
}
5656

5757
});
@@ -86,4 +86,4 @@ app.post('/sendotp',function(req,res){
8686
const PORT=process.env.PORT||3000;
8787
app.listen(PORT,()=>{
8888
console.log(`app is live at ${PORT}`);
89-
})
89+
})

0 commit comments

Comments
 (0)