Merge pull request #26 from shapeblue/oobm-ui-password-fix

APPLE-320: Bypass password validation for oobm
This commit is contained in:
Rohit Yadav 2016-12-10 01:34:21 +05:30 committed by GitHub
commit 2b4cdd6580
2 changed files with 2 additions and 0 deletions

View File

@ -16286,6 +16286,7 @@
action: function (args) {
var data = args.data;
data.hostid = args.context.hosts[0].id;
data.password = $("<span>").html(data.password).text();
$.ajax({
url: createURL('configureOutOfBandManagement'),

View File

@ -361,6 +361,7 @@
$.validator.addMethod(
"disallowSpecialCharacters",
function(value, element) {
if (element.id == "label_outofbandmanagement_password") return true;
return (value.indexOf("<") == -1 && value.indexOf(">") == -1);
},
jQuery.format('message.disallowed.characters')