illinois-cs241 / broadway-on-demand

Webapp that facilitates on-demand assignment autograding via Broadway.
Other
11 stars 4 forks source link

Avoid overwriting personal token when login #105

Closed Xiangmingchen closed 4 years ago

Xiangmingchen commented 4 years ago

Right now the personal token (used for roster sync authentication) will be overwritten when the user login through GHE, because set_user_access_token updates the whole document of user instead of only setting the access_token field. This PR changes this to a $set operation to avoid this.

Xiangmingchen commented 4 years ago

Tested locally that both creating new user and setting access token work