Skip to content

Commit

Permalink
adds usernames.
Browse files Browse the repository at this point in the history
  • Loading branch information
birkin authored Oct 7, 2019
1 parent 8a57373 commit 236dd4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ app.use(cookieParser());
app.use(bodyparser.urlencoded({extended: true}));
app.use(bodyparser.json());

const validUserids = ['monica', 'nicole', 'jim', 'felicia', 'cailyn', 'elli', 'bruce', 'patrick']
const validUserids = ['monica', 'nicole', 'jim', 'felicia', 'cailyn', 'elli', 'bruce', 'patrick', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]', 'user01', 'user02', 'user03', 'user04', 'user05', 'user06', 'user07', 'user08', 'user09', 'user10']
function validateCredentials(token) {
const [userid, password] = token.split(":");
return (password === process.env.API_PASSWORD && validUserids.indexOf(userid) >= 0);
Expand Down

0 comments on commit 236dd4c

Please sign in to comment.