From a304398ea54448ac5c1a5419776d65b3fe9a8bb2 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Fri, 30 Jan 2015 17:16:09 -0500 Subject: [PATCH] LP#1402797 Protect against chrome autofill as best we can in Verfiy Credentials Signed-off-by: Mike Rylander Signed-off-by: Bill Erickson --- Open-ILS/src/templates/staff/circ/patron/t_credentials.tt2 | 6 +++--- Open-ILS/web/js/ui/default/staff/circ/patron/app.js | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/templates/staff/circ/patron/t_credentials.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_credentials.tt2 index 524cb7fa74..63557227e7 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_credentials.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_credentials.tt2 @@ -11,7 +11,7 @@ for="verify-username">[% l('Username') %]
@@ -21,7 +21,7 @@ for="verify-barcode">[% l('Barcode') %]
@@ -30,7 +30,7 @@
-
diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js index f2f21a3ec5..cca86d0b00 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js @@ -1167,10 +1167,14 @@ function($scope, $routeParams , $location , egCore) { // called with a patron, pre-populate the form args $scope.initTab('other', $routeParams.id).then( function() { - if ($scope.patron()) { + if ($routeParams.id && $scope.patron()) { $scope.prepop = true; $scope.username = $scope.patron().usrname(); $scope.barcode = $scope.patron().card().barcode(); + } else { + $scope.username = ''; + $scope.barcode = ''; + $scope.password = ''; } } ); -- 2.11.0