public async Task <TApplicationUser> FindByNameAsync(string login)
        {
            var baseUser = await userRepository.GetByLogin(login, session, true);

            return(baseUser.MapTo <TApplicationUser>());
        }
예제 #2
0
        public async Task <TUser> FindByNameAsync(string normalizedUserName, CancellationToken cancellationToken = default(CancellationToken))
        {
            cancellationToken.ThrowIfCancellationRequested();

            return(await userRepository.GetByLogin(normalizedUserName, session, true));
        }