diff --git a/server/config.bak/email.js b/server/config.bak/email.js new file mode 100644 index 000000000..8e86bca90 --- /dev/null +++ b/server/config.bak/email.js @@ -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: '', + }, +}; \ No newline at end of file diff --git a/server/config.bak/keys.js b/server/config.bak/keys.js new file mode 100644 index 000000000..c1365978d --- /dev/null +++ b/server/config.bak/keys.js @@ -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: '', + }, + }, +}; \ No newline at end of file diff --git a/server/modules/user/loginlogs/loginlogController.js b/server/modules/user/loginlogs/loginlogController.js index 0f7cab435..54e8914bc 100644 --- a/server/modules/user/loginlogs/loginlogController.js +++ b/server/modules/user/loginlogs/loginlogController.js @@ -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);