Example #1
0
        public override async Task <IdentityResult> ChangePasswordAsync(User user, string currentPassword, string newPassword)
        {
            var changePassword = new platformSecurityDto.ChangePasswordInfo
            {
                OldPassword = currentPassword,
                NewPassword = newPassword,
            };
            var resultDto = await _platformSecurityApi.ChangePasswordAsync(user.UserName, changePassword);

            return(resultDto.ToIdentityResult());
        }