Exemplo n.º 1
0
        public async Task <IActionResult> ChangePassword(ChangePasswordModel model)
        {
            var response = await PutToApi("users/password", new ChangePasswordDto()
            {
                NewPassword       = model.NewPassword,
                NewPasswordRepeat = model.NewPasswordRepeat,
                OldPassword       = model.OldPassword
            });

            return(!await model.ValidateAsync(response) ? View(model) : View("ChangePasswordOk"));
        }