Skip to content

Commit 4828d7d

Browse files
Merge pull request #265 from WebJamApps/dev
Promote to master
2 parents 97530c6 + 4e57cb6 commit 4828d7d

File tree

4 files changed

+398
-320
lines changed

4 files changed

+398
-320
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ jobs:
44
working_directory: ~/web-jam-back
55
# The primary container is an instance of the first list image listed. Your build commands run in this container.
66
docker:
7-
- image: circleci/node:8.9.4-browsers
7+
- image: circleci/node:8.10.0-browsers
88
# The secondary container is an instance of the second listed image which is run in a common network where ports exposed on the primary container are available on localhost.
99
#- image: mongo:3.4.4
1010
steps:
1111
- checkout
1212
- run:
1313
name: Install globals
14-
command: 'sudo npm install -g npm@latest && sudo npm install -g bower@latest && sudo npm install -g codeclimate-test-reporter'
14+
command: 'sudo npm install -g npm@latest && sudo npm install -g codeclimate-test-reporter'
1515
- restore_cache:
1616
key: dependency-cache-{{ checksum "package.json" }}
1717
- run:
@@ -23,13 +23,13 @@ jobs:
2323
- node_modules
2424
test:
2525
docker:
26-
- image: circleci/node:8.9.4-browsers
26+
- image: circleci/node:8.10.0-browsers
2727
#- image: mongo:3.4.4
2828
steps:
2929
- checkout
3030
- run:
3131
name: Test install
32-
command: 'sudo npm install -g npm@latest && sudo npm install -g bower@latest && sudo npm install -g codeclimate-test-reporter && yarn install'
32+
command: 'sudo npm install -g npm@latest && sudo npm install -g codeclimate-test-reporter && yarn install'
3333
#- run:
3434
# name: ubuntu dependancies
3535
# command: 'sudo apt-get update -y && sudo apt-get install -y apt-utils gconf-service libasound2 libatk1.0-0 libcups2 libdbus-1-3 libgconf-2-4 libgtk-3-0 libnspr4 libxcomposite1 libxss1 fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils'

auth/auth.controller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ exports.login = function(req, res) {
6060
} if (user.password === '' || user.password === null || user.password === undefined) {
6161
return res.status(401).json({ message: 'Please reset your password' });
6262
} if (!user.verifiedEmail) {
63-
return res.status(401).json({ message: 'Verify your email' });
63+
return res.status(401).json({ message: '<a href="/userutil">Verify</a> your email' });
6464
}
6565
// authUtils.verifySaveUser(user, req, res);
6666
user.comparePassword(req.body.password, (err, isMatch) => {
@@ -131,7 +131,7 @@ exports.changeemail = function(req, res) {
131131
res.status(201).json({ success: true });
132132
const mailBody = '<h2>An Email Address Change was Requested for ' + existinguser.name + '.</h2><p>Click this <a style="color:blue; text-decoration:underline; cursor:pointer; cursor:hand" href="' +
133133
frontURL + '/userutil/?changeemail=' + existinguser.changeemail + '">' +
134-
'link</a>, then enter the following code to validate this new email: <br><br><strong>' + existinguser.resetCode + '</strong></p><p><i>If this reset was requested in error, you can ignore it and login as usual.</i></p>';
134+
'link</a>, then enter the following code to validate this new email: <br><br><strong>' + existinguser.resetCode + '</strong></p><p><i>If this email change was requested in error, you can ignore it and login as usual.</i></p>';
135135
authUtils.sendGridEmail(mailBody, existinguser.changeemail, 'Email Change Request');
136136
});
137137
});

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
{
22
"name": "web-jam-back",
3-
"version": "0.7.6",
3+
"version": "0.7.7",
44
"description": "web-jam.com",
55
"main": "index.js",
66
"engines": {
7-
"node": "8.9.4",
8-
"npm": "5.6.0"
7+
"node": "8.10.0"
98
},
109
"license": "MIT",
1110
"scripts": {
12-
"installglobals": "npm install -g npm@latest && npm install -g bower@latest",
11+
"installglobals": "npm install -g npm@latest",
1312
"postinstall": "./postinstall.sh",
1413
"dev": "nodemon index.js",
15-
"build:prod": "(cd frontend || exit; npm run vulc && npm start -- build)",
14+
"build:prod": "(cd frontend || exit; npm start -- build)",
1615
"start": "node index.js",
1716
"cleaninstall": "rm -rf yarn.lock && rm -rf node_modules && yarn cache clean && npm run installglobals && yarn install",
1817
"debug": "node --inspect-brk index.js",
@@ -59,7 +58,7 @@
5958
"mockgoose": "^6.0.8",
6059
"nock": "^9.0.13",
6160
"nodemon": "^1.9.2",
62-
"sinon": "^1.17.6"
61+
"sinon": "^4.4.6"
6362
},
6463
"snyk": true
6564
}

0 commit comments

Comments
 (0)