Compare View
Commits (2)
Diff
Showing 1 changed file Side-by-side Diff
scripts/LoginController.js
View file @
4b54a81
... | ... | @@ -26,6 +26,7 @@ angular.module('flashy.LoginController', ['ui.router']). |
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 @@ angular.module('flashy.LoginController', ['ui.router']). |
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 |