Reset the form back to a pristine state on a successful password change.

This commit is contained in:
yackob03 2013-10-10 14:02:28 -04:00
parent 3cadc5bdb8
commit 5b25d8db5b
2 changed files with 6 additions and 1 deletions

View file

@ -563,6 +563,11 @@ function UserAdminCtrl($scope, $timeout, Restangular, PlanService, UserService,
$scope.updatingUser = false;
$scope.changePasswordSuccess = true;
// Reset the form
$scope.user.password = '';
$scope.user.repeatPassword = '';
$scope.changePasswordForm.$setPristine();
UserService.load();
}, function(result) {
$scope.updatingUser = false;