From 33e449318865d6fe55e0f95288912b919ab6d125 Mon Sep 17 00:00:00 2001 From: Kevin Mach Date: Wed, 3 Jun 2015 17:53:07 -0700 Subject: [PATCH] clear password input box if there's error --- scripts/LoginController.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/LoginController.js b/scripts/LoginController.js index 56e090f..c069f25 100644 --- a/scripts/LoginController.js +++ b/scripts/LoginController.js @@ -26,6 +26,7 @@ angular.module('flashy.LoginController', ['ui.router']). error(function(data, status, header, config) { if (data.detail) { // assume 'invalid email or pass' $scope.loginError = true; + $scope.loginPassword = ''; } console.log(data); }); @@ -52,6 +53,8 @@ angular.module('flashy.LoginController', ['ui.router']). $scope.uniqueError = true; $scope.invalid = false; } + + $scope.registerPassword = ''; console.log(data); }); -- 1.9.1