Signed-off-by: Bill Erickson <berick@esilibrary.com>
})
$scope.login = function(args) {
- args.type = 'staff';
$scope.loginFailed = false;
+ if (!args) args = {}; // see FF note below
+
if (!args.username) {
/*
Issues with form autofill / auto-complete
honor them, even if it's hacky. */
args.username = document.getElementById("login-username").value;
args.password = document.getElementById("login-password").value;
- args.workstation = document.getElementById("login-workstation").value;
}
if (! (args.username && args.password) ) return;
+ args.type = 'staff';
egAuth.login(args).then(
function() {