Commit 33e449318865d6fe55e0f95288912b919ab6d125
1 parent
343523153b
Exists in
master
clear password input box if there's error
Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff
scripts/LoginController.js
View file @
33e4493
... | ... | @@ -26,6 +26,7 @@ |
26 | 26 | error(function(data, status, header, config) { |
27 | 27 | if (data.detail) { // assume 'invalid email or pass' |
28 | 28 | $scope.loginError = true; |
29 | + $scope.loginPassword = ''; | |
29 | 30 | } |
30 | 31 | console.log(data); |
31 | 32 | }); |
... | ... | @@ -52,6 +53,8 @@ |
52 | 53 | $scope.uniqueError = true; |
53 | 54 | $scope.invalid = false; |
54 | 55 | } |
56 | + | |
57 | + $scope.registerPassword = ''; | |
55 | 58 | console.log(data); |
56 | 59 | }); |
57 | 60 |