Edit userinfo

This commit is contained in:
Bruno Rybársky 2024-02-03 17:42:57 +01:00
parent bc4e698b35
commit 1e8877c87e

@ -44,11 +44,8 @@
}
async function getUserInfo() {
const userId = document.getElementById("getUserInfoId").value;
const data = new URLSearchParams();
data.append("action", "get_user_info");
data.append("user_id", userId);
const result = await doAccountAction(data, "User info retrieved Successfully!", "User info retrieval failed.");
@ -128,9 +125,6 @@
<div class="form-container" id="getUserInfoForm">
<h1>Get User Info</h1>
<form>
<label for="getUserInfoId">User ID:</label>
<input type="text" id="getUserInfoId" name="getUserInfoId" required>
<button type="button" onclick="getUserInfo()">Get User Info</button>
</form>
</div>