feat/app-invite #33

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

Revert "search all user by email at forgotten password"

This reverts commit 406e2ff03a.
Paul Schneider 2026-07-04 17:29:49 +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 _dbContext.Users.FirstOrDefaultAsync(u => u.Email == model.LoginOrEmail); // || u.UserName == (model.LoginOrEmail); user = await _userManager.FindByEmailAsync(model.LoginOrEmail);
} }
else else
{ {