Skip to content

Commit cde350e

Browse files
authored
Merge pull request #179 from hackmcgill/develop
Bug fixes, new routes
2 parents d784de4 + 4ebd870 commit cde350e

44 files changed

Lines changed: 1453 additions & 366 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ PORT=<Some Port such as 3000>
33
#The address on which the server is being run:
44
ADDRESS=<Some address such as 127.0.0.1>
55

6+
#front-end server
7+
FRONTEND_ADDRESS_DEV=localhost:1337
8+
FRONTEND_ADDRESS_DEPLOY=app.mchacks.ca
9+
610
#The info for the deployment database
711
DB_ADDRESS_DEPLOY=<Deployment address>
812
DB_USER_DEPLOY=<username for db connection>

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,8 @@ node_modules
6161
#creds
6262
gcp_creds.json
6363

64+
#certbot
65+
certbot/
66+
6467
#secrets
65-
secret.yaml
68+
secret.yaml

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"node":true,
55
"this":false,
66
"bad_property":false
7-
}
7+
},
8+
"search.usePCRE2": true
89
}

apidoc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"defaultVersion": "0.0.8",
55
"description": "Documentation for the API used for mchacks",
66
"title": "hackerAPI documentation",
7-
"url": "https://mchacks.ca/api",
8-
"sampleUrl": "https://mchacks.ca/api"
7+
"url": "https://api.mchacks.ca/api",
8+
"sampleUrl": "https://api.mchacks.ca/api"
99
}

app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ let corsOptions = {};
3636

3737
if (!Services.env.isProduction()) {
3838
corsOptions = {
39-
origin: ["http://localhost:1337", "http://localhost:8989"],
39+
origin: [process.env.FRONTEND_ADDRESS_DEV],
4040
credentials: true
4141
};
4242
} else {
4343
// TODO: change this when necessary
4444
corsOptions = {
45-
origin: ["https://mchacks.ca/"],
45+
origin: [process.env.FRONTEND_ADDRESS_DEPLOY],
4646
credentials: true
4747
};
4848
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<b>
22
Confirm Account:
3-
<a href="{{link}}">here</a>
3+
<a href="{{{link}}}">here</a>
44
</b>

assets/email/AccountInvitation.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<b>
22
Create Your Account:
3-
<a href="{{link}}">here</a>
3+
<a href="{{{link}}}">here</a>
44
</b>

assets/email/ResetPassword.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<b>
22
Reset password:
3-
<a href="{{link}}">here</a>
3+
<a href="{{{link}}}">here</a>
44
</b>

assets/email/test.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<div>This is used for testing email service. DO NOT REMOVE.{{TEST}}</div>
1+
<div>This is used for testing email service. DO NOT REMOVE.{{TEST}}. <a href="{{{NOT_ESCAPED}}}">link</a></div>

constants/error.constant.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const SPONSOR_ID_409_MESSAGE = "Conflict with sponsor accountId link";
1111
const VOLUNTEER_ID_409_MESSAGE = "Conflict with volunteer accountId link";
1212
const HACKER_ID_409_MESSAGE = "Conflict with hacker accountId link";
1313
const TEAM_MEMBER_409_MESSAGE = "Conflict with team member being in another team";
14+
const HACKER_STATUS_409_MESSAGE = "Conflict with hacker status";
1415

1516
const TEAM_MEMBER_422_MESSAGE = "Duplicate team member in input";
1617
const VALIDATION_422_MESSAGE = "Validation failed";
@@ -59,4 +60,5 @@ module.exports = {
5960
GENERIC_500_MESSAGE: GENERIC_500_MESSAGE,
6061
ACCOUNT_DUPLICATE_422_MESSAGE: ACCOUNT_DUPLICATE_422_MESSAGE,
6162
LOGIN_500_MESSAGE: LOGIN_500_MESSAGE,
63+
HACKER_STATUS_409_MESSAGE: HACKER_STATUS_409_MESSAGE,
6264
};

0 commit comments

Comments
 (0)