BetterFinds
Public Member Functions | List of all members
BetterFinds.Pages.LogoutModel Class Reference

Model for the Logout page. This class is decorated with the Authorize attribute. More...

Inheritance diagram for BetterFinds.Pages.LogoutModel:
Inheritance graph
[legend]
Collaboration diagram for BetterFinds.Pages.LogoutModel:
Collaboration graph
[legend]

Public Member Functions

async Task< IActionResult > OnGet ()
 Logs the user out and redirects them to the login page. More...
 

Detailed Description

Model for the Logout page. This class is decorated with the Authorize attribute.

Member Function Documentation

◆ OnGet()

async Task<IActionResult> BetterFinds.Pages.LogoutModel.OnGet ( )
inline

Logs the user out and redirects them to the login page.

This method is called when the user navigates to the logout page. It logs the user out and redirects them to the login page with a logout message.

Returns
A asynchronous task that represents the logout operation.

The documentation for this class was generated from the following file: