Skip to content

Commit

Permalink
Test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mridul549 committed Jan 23, 2024
1 parent c95f23c commit be5a690
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file modified .DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ app.use(bodyParser.urlencoded({extended: false}));

// Require bull queue processor for orders
require('./queue/index')

require('./mail/mailController')
// implementing CORS security mechanism
app.use((req,res,next) => {
res.header("Access-Control-Allow-Origin", "*");
Expand All @@ -50,6 +50,6 @@ app.use((req,res,next) => {

app.use('/', require('./routes/home'));

app.listen(process.env.PORT || 3001, () => {
app.listen(process.env.PORT || 3002, () => {
console.log(`Server started`);
})
2 changes: 1 addition & 1 deletion controllers/userController.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ module.exports.login = (req,res) => {
})
}
const authMethod = user[0].authMethod
if(authMethod=="google"){
if(authMethod==="google"){
return res.status(409).json({
message: "Password is not set for this account. Login using some other method."
})
Expand Down

0 comments on commit be5a690

Please sign in to comment.