Skip to content

Commit

Permalink
[PMM-1718] Passed instance id with user login form.
Browse files Browse the repository at this point in the history
  • Loading branch information
askomorokhov committed Nov 15, 2017
1 parent 1c04c0f commit b27e8eb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions password-page/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ <h3 class="text-justify" style="font-size: 16px;">

var postUser = $.post("/configurator/v1/users", JSON.stringify({
"Username": $("#login").val(),
"Password": $("#password").val()
"Password": $("#password").val(),
"Instance": $("#InstanceID").val()
}), null, "json");

postUser.done(function() {
Expand Down Expand Up @@ -225,14 +226,14 @@ <h3 class="text-justify" style="font-size: 16px;">
$("#InstanceID").parent().removeClass("has-success").addClass("has-error has-feedback");
$("#InstanceID").tooltip({
"trigger": "focus",
"title": "Incorrect InstanceID"
"title": "Wrong Instance ID"
});
})
postInstanceID.fail(function(jqXHR) {
$("#InstanceID").parent().removeClass("has-success").addClass("has-error has-feedback");
$("#InstanceID").tooltip({
"trigger": "focus",
"title": "Incorrect InstanceID"
"title": "Wrong Instance ID"
});
});
}
Expand Down

0 comments on commit b27e8eb

Please sign in to comment.