From: Mike Rylander Date: Fri, 30 Jan 2015 22:16:09 +0000 (-0500) Subject: LP#1402797 Protect against chrome autofill as best we can in Verfiy Credentials X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a304398ea54448ac5c1a5419776d65b3fe9a8bb2;p=evergreen%2Fmasslnc.git LP#1402797 Protect against chrome autofill as best we can in Verfiy Credentials Signed-off-by: Mike Rylander Signed-off-by: Bill Erickson --- 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 = ''; } } );