0
sampath created
Hi, Can you tell me how to retrieve all the users ? Thanks.
I have tried this.But it's not working.I know problem here is the password.But how can I send the password here ?
using (CurrentUnitOfWork.DisableFilter(AbpDataFilters.MayHaveTenant))
{
var users = _userManager.Users.Where(u => u.EmailAddress == usernameOrEmailAddress && u.Password == password).ToList();
}
6 Answer(s)
-
0
You need to hash password. Use PasswordHasher. example: <a class="postlink" href="https://github.com/aspnetboilerplate/module-zero/blob/e122c1d1c1eb46636fd0e0e77a5188e3c7befb9c/src/Tests/Abp.Zero.SampleApp.Tests/TestDatas/InitialUsersBuilder.cs#L34">https://github.com/aspnetboilerplate/mo ... der.cs#L34</a>
Have an answer to this question?
Log in
and write your answer.