TheDarkun / Elevators

Fullstack .NET Project for SOČ
0 stars 0 forks source link

Logout Functionality #12

Closed TheDarkun closed 1 month ago

TheDarkun commented 7 months ago

Logout Functionality

Proposal

Currently, users lack the ability to log out once authorized. The only option available is to manually remove their cookie from the browser.

Details

Frontend

In the < LoggedUser /> component introduced in issue #10, a new option will be added within the Popover menu for signing out. Upon clicking this button, the page will refresh if the logout was successful, otherwise there will appear MudBlazor Snackbar with an error.

Backend & Database

A new API endpoint will be implemented to manage the removal of the user's cookie. Additionally, the user's credentials will be deleted from the database.