This commit is contained in:
2022-08-29 00:44:51 +00:00
parent c2cf61c4ce
commit 6318631014
7 changed files with 122 additions and 28 deletions

View File

@@ -415,9 +415,10 @@ app.api = (function () {
$.ajax({
method: "post",
dataType: "json",
url: app.shell.stateMap.apiUrl + "order/shareit",
username: 'Y24PYYDQSA1L12905N5MKU',
password: 'MA8GMQK2PC3FDNT1RTR68R',
url: app.shell.stateMap.apiUrl + "order/shareit",
headers: {
"Authorization": "Basic " + btoa('xxxxxx' + ":" + 'xxxxxx')
},
contentType: "application/json; charset=utf-8",
data: JSON.stringify(objData),
success: function (data) {

View File

@@ -55,6 +55,7 @@ app.rfsettings = (function () {
//
onTest = function (event) {
event.preventDefault();
//debugger;
var submitData = {
creation_date: "2018-06-19T11:08:09.0000000Z", // <-- NEW
id: 283832781, // <-- NEW
@@ -93,10 +94,11 @@ app.rfsettings = (function () {
};
app.api.test(submitData, function (res) {
if (res.error) {
alert("ERROR");
$.gevent.publish("app-show-error", res.msg);
} else {
//do nothing, success!
alert("SUCCESS!");
//$('#key').val(res);
return false;
}

View File

@@ -1,19 +1,35 @@
<div>
<div class="alert alert-success mb-5" id="about" />
<div class="alert alert-success mb-5" id="about"></div>
<form id="frm" method="post" action="index.html">
<div class="form-group">
<label for="oldpassword">Change password</label>
<input class="form-control" type="text" id="oldpassword" name="oldpassword" placeholder="current password" value="">
<input class="form-control" type="text" id="newpassword" name="newpassword" placeholder="new password" value="">
<input
class="form-control"
type="text"
id="oldpassword"
name="oldpassword"
placeholder="current password"
value=""
/>
<input
class="form-control"
type="text"
id="newpassword"
name="newpassword"
placeholder="new password"
value=""
/>
<div class="app-frm-buttons mt-5">
<button id="btn-change-password">Update</button>
</div>
<div class="app-frm-buttons mt-5">
<button id="btn-test" class="btn btn-warning">TEST THAT THING</button>
</div>
</div>
</form>
<hr />
<div class="app-frm-buttons mt-5">
<button id="btn-test" class="btn btn-warning">TEST THAT THING</button>
</div>
</div>