diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-12-14 10:38:08 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-12-14 10:38:08 +0100 |
| commit | 2f7da902c9afeb3df31f59fa6c16223990f51eb6 (patch) | |
| tree | da258139ba2ef663a3061f00bbf7257ef723b958 /code/api/src/Endpoints/Internal/Account/LoginRoute.cs | |
| parent | 0557de9f069dc620539409aced67e2ad61d25395 (diff) | |
| download | greatoffice-2f7da902c9afeb3df31f59fa6c16223990f51eb6.tar.xz greatoffice-2f7da902c9afeb3df31f59fa6c16223990f51eb6.zip | |
feat: Working email validation
Diffstat (limited to 'code/api/src/Endpoints/Internal/Account/LoginRoute.cs')
| -rw-r--r-- | code/api/src/Endpoints/Internal/Account/LoginRoute.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/code/api/src/Endpoints/Internal/Account/LoginRoute.cs b/code/api/src/Endpoints/Internal/Account/LoginRoute.cs index eaebc2a..8a3dff4 100644 --- a/code/api/src/Endpoints/Internal/Account/LoginRoute.cs +++ b/code/api/src/Endpoints/Internal/Account/LoginRoute.cs @@ -1,5 +1,3 @@ -using Microsoft.Extensions.Localization; - namespace IOL.GreatOffice.Api.Endpoints.Internal.Account; public class LoginRoute : RouteBaseAsync.WithRequest<LoginRoute.Payload>.WithActionResult @@ -29,7 +27,7 @@ public class LoginRoute : RouteBaseAsync.WithRequest<LoginRoute.Payload>.WithAct return KnownProblem(_localizer["Invalid username or password"]); } - await _userService.LogInUser(HttpContext, user, request.Persist); + await _userService.LogInUserAsync(HttpContext, user, request.Persist); return Ok(); } }
\ No newline at end of file |
