This commit is contained in:
Bruno Rybársky 2024-02-04 09:28:38 +01:00
parent 8ab13c554e
commit e514573ebb

@ -60,50 +60,56 @@
} }
} }
function init(){ function init() {
getUserInfo(); getUserInfo();
} }
window.onload = init();
window.onload = init;
</script> </script>
<!-- Centralized Status Message --> <!-- Centralized Status Message -->
<p id="StatusMessage"></p> <p id="StatusMessage"></p>
<button type="button" onclick="logout()">Logout</button><br>
<div class="form-container" id="updateUserProfileForm"> <div class="form-container" id="updateUserProfileForm">
<h1>Update User</h1> <h1>Update User</h1>
<form> <label for="updateFirstName">First Name:</label>
<label for="updateFirstName">First Name:</label> <input type="text" id="updateFirstName" name="updateFirstName" required><br>
<input type="text" id="updateFirstName" name="updateFirstName" required><br>
<label for="updateLastName">Last Name:</label> <label for="updateLastName">Last Name:</label>
<input type="text" id="updateLastName" name="updateLastName" required><br> <input type="text" id="updateLastName" name="updateLastName" required><br>
<label for="updateNickname">Nickname:</label> <label for="updateNickname">Nickname:</label>
<input type="text" id="updateNickname" name="updateNickname" required><br> <input type="text" id="updateNickname" name="updateNickname" required><br>
<label for="updateMinecraftNick">Minecraft Nick:</label> <label for="updateMinecraftNick">Minecraft Nick:</label>
<input type="text" id="updateMinecraftNick" name="updateMinecraftNick" required><br> <input type="text" id="updateMinecraftNick" name="updateMinecraftNick" required><br>
<button type="button" onclick="updateUserProfile()">Update Profile</button> <button type="button" onclick="updateUserProfile()">Update Profile</button>
<label for="updateNewEmail">New Email:</label> <br><br>
<input type="email" id="updateNewEmail" name="updateNewEmail" required><br>
<button type="button" onclick="updateEmail()">Update Email</button> <label for="updateNewEmail">New Email:</label>
</form><br> <input type="email" id="updateNewEmail" name="updateNewEmail" required><br>
<button type="button" onclick="updateEmail()">Update Email</button>
<br>
</div> </div>
<hr>
<div class="form-container" id="changePasswordForm"> <div class="form-container" id="changePasswordForm">
<h1>Change Password</h1> <h1>Change Password</h1>
<form> <label for="changeOldPassword">Old Password:</label>
<label for="changeOldPassword">Old Password:</label> <input type="password" id="changeOldPassword" name="changeOldPassword" required><br>
<input type="password" id="changeOldPassword" name="changeOldPassword" required><br>
<label for="changeNewPassword">New Password:</label> <label for="changeNewPassword">New Password:</label>
<input type="password" id="changeNewPassword" name="changeNewPassword" required><br> <input type="password" id="changeNewPassword" name="changeNewPassword" required><br>
<button type="button" onclick="changePassword()">Change Password</button> <button type="button" onclick="changePassword()">Change Password</button>
</form><br> <br>
</div> </div>
<button type="button" onclick="logout()">Logout</button><br> <hr>