Esempio n. 1
0
        public async Task <IdentityResult> ChangePassword([FromBody] LoginPoco loginPoco)
        {
            var findByNameAsync = await _context.FestiUsers.Include(el => el.UserAccount).FirstOrDefaultAsync(elem => elem.Id == loginPoco.UserId);

            _authManager.RemovePassword(findByNameAsync.UserAccount.Id);
            return(await _authManager.AddPasswordAsync(findByNameAsync.UserAccount.Id, loginPoco.Password));
        }