<input ng-keyup="$event.keyCode == 13 ? ok() : null" type='password' ng-model="args.password" class="form-control"/>
</div>
</div>
+ <div class="row">
+ <div class="col-md-4">
+ [% l('Login Type:') %]
+ </div>
+ <div class="col-md-1"></div>
+ <div class="col-md-7">
+ <select class="form-control" required ng-model="args.type">
+ <option value="temp">[% l('Temporary') %]</option>
+ <option value="staff" selected>[% l('Staff') %]</option>
+ <option value="persist" selected>[% l('Persistent') %]</option>
+ </select>
+ </div>
+ </div>
</div>
<div class="modal-footer">
[% dialog_footer %]
templateUrl: './share/t_opchange',
controller:
['$scope', '$uibModalInstance', function($scope, $uibModalInstance) {
- $scope.args = {username : '', password : ''};
+ $scope.args = {username : '', password : '', type : 'temp'};
$scope.focus = true;
$scope.ok = function() { $uibModalInstance.close($scope.args) }
$scope.cancel = function () { $uibModalInstance.dismiss() }
}]
}).result.then(function (args) {
if (!args || !args.username || !args.password) return;
+ args.type = args.type || 'temp';
args.workstation = egCore.auth.workstation();
egCore.auth.opChange(args).then(
function() {