![]() |
Hagglehaul
1.0
Hagglehaul - book and bid on rides
|
Controller for authentication, registration, and role management. More...
Public Member Functions | |
AuthenticationController (IOptions< JwtSettings > settings, IUserCoreService userCoreService, IRiderProfileService riderProfileService, IDriverProfileService driverProfileService) | |
async Task< IActionResult > | Register ([FromBody] Register model) |
Creates a new user and stores their information in the database. | |
async Task< IActionResult > | Login ([FromBody] Login model) |
Logs in as an existing user. | |
async Task< String > | Role () |
Get the role of the current user. | |
Controller for authentication, registration, and role management.
async Task< IActionResult > hagglehaul.Server.Controllers.AuthenticationController.Login | ( | [FromBody] Login | model | ) |
Logs in as an existing user.
model | The login form |
async Task< IActionResult > hagglehaul.Server.Controllers.AuthenticationController.Register | ( | [FromBody] Register | model | ) |
Creates a new user and stores their information in the database.
model | The registration form |
async Task< String > hagglehaul.Server.Controllers.AuthenticationController.Role | ( | ) |
Get the role of the current user.