Skip to content

Commit

Permalink
trim space while zid input (#23)
Browse files Browse the repository at this point in the history
Co-authored-by: Zheng Fu <[email protected]>
  • Loading branch information
snowden-fu and snowden-fu authored Sep 14, 2024
1 parent dde5e1c commit 0b3f85b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ const buildGroups = (term) => {
const isTutor = zid => config.TERMS[config.TERM_DEFAULT].TUTOR_ID_LIST.includes(zid);

const validUserCheck = (zid, zpass, term) => {
zid = zid.replace(/\s/g, '');
return new Promise((resolve, reject) => {
if (config.DEV || term === 'sample') {
if (zid === '5555555' || zid === '3418003') {
Expand Down

0 comments on commit 0b3f85b

Please sign in to comment.