Loading dans le login et correction de fuck de login dans l'API

This commit is contained in:
MarcEricMartel
2022-11-06 08:17:01 -08:00
parent f197c05b0c
commit 43cd2bd7c2
5 changed files with 22 additions and 11 deletions

View File

@@ -46,6 +46,8 @@ public class LoginController : Controller {
public SignInResult Login(LoginModel user, bool rememberMe = false) {
var User = _userMan.FindByEmailAsync(user.email.ToUpper());
User.Wait();
if (User.Result is null)
return new SignInResult();
var res = _signInMan.PasswordSignInAsync(User.Result, user.password, rememberMe, false);
res.Wait();
return res.Result;