feat/app-invite #33

Closed
notazof wants to merge 220 commits from feat/app-invite into feat/postit-acl
Showing only changes of commit 406e2ff03a - Show all commits

search all user by email at forgotten password

Paul Schneider 2026-07-04 17:24:12 +01:00

View file

@ -867,7 +867,7 @@ IHtmlLocalizerFactory htmlLocalizerFactory,
// Username should not contain any '@' // Username should not contain any '@'
if (model.LoginOrEmail.Contains('@')) if (model.LoginOrEmail.Contains('@'))
{ {
user = await _userManager.FindByEmailAsync(model.LoginOrEmail); user = await _dbContext.Users.FirstOrDefaultAsync(u => u.Email == model.LoginOrEmail); // || u.UserName == (model.LoginOrEmail);
} }
else else
{ {