Skip to content

Commit

Permalink
Default config value
Browse files Browse the repository at this point in the history
  • Loading branch information
mkmpvtltd1 committed Jul 29, 2019
1 parent ac4496e commit 1a96bc2
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
19 changes: 19 additions & 0 deletions server/config.bak/email.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
smtp: {
protocal: '',
email: '',
password: '',
server: '',
port: ' ',
secure: true,
security: '',
},
channel: 'waft', // ['waft','smtp','mailgun','sendgrid'] // waft : no need to confuger any thing and email is sent from contact@waftengine.org
mailgun: {
api_key: '',
domain: '',
},
sendgrid: {
api_key: '',
},
};
22 changes: 22 additions & 0 deletions server/config.bak/keys.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module.exports = {
mongoURI: '',

recaptcha: { secretKey: '', siteKey: '' },
secretOrKey: 'jwtsecret',
tokenExpireTime: 360000,
isOauthConfig: { isGoogleAuth: false, isFacebookAuth: false, isGithubAuth: false },
oauthConfig: {
googleAuth: {
client_id: '',
client_secret: '',
},
facebookAuth: {
FACEBOOK_APP_ID: '',
FACEBOOK_APP_SECRET: '',
},
githubAuth: {
ClientID: '',
ClientSecret: '',
},
},
};
2 changes: 1 addition & 1 deletion server/modules/user/loginlogs/loginlogController.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ loginlogController.logout = async (req, res, next) => {
if (deactivelog) {
return otherHelper.sendResponse(res, httpStatus.OK, true, null, null, 'Logged out', null);
} else {
return otherHelper.sendResponse(res, httpStatus.BAD_REQUEST, false, null, null, 'Login First', null);
return otherHelper.sendResponse(res, httpStatus.OK, false, null, null, 'Logged out', null);
}
} catch (err) {
next(err);
Expand Down

0 comments on commit 1a96bc2

Please sign in to comment.