SE701-T5 / Backend

Heroku deployed Node.js backend server developed by Team-5 for the UniForum project associated with the University of Auckland SOFTENG 701 course
https://uni-forum.herokuapp.com/
MIT License
2 stars 18 forks source link

Implement logout user funtionality #71

Closed R055A closed 2 years ago

R055A commented 2 years ago

Description

Implemented functionality for logging out a user by HTTP POST request.

The user is first verified as logged in and then the authorization token is set to "0" in the user database document.

Related Issue

Solves #19

Type of change

How Has This Been Tested?

Automated testing for successful logging out a user, and unsuccessfully logging out a user with invalid ID and invalid authorization token.

Checklist:

For more information, refer to the Contributing Guidelines and Code of Conduct links at the bottom of this page.