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

@ -60,18 +60,20 @@
}
}
function init(){
function init() {
getUserInfo();
}
window.onload = init();
window.onload = init;
</script>
<!-- Centralized Status Message -->
<p id="StatusMessage"></p>
<button type="button" onclick="logout()">Logout</button><br>
<div class="form-container" id="updateUserProfileForm">
<h1>Update User</h1>
<form>
<label for="updateFirstName">First Name:</label>
<input type="text" id="updateFirstName" name="updateFirstName" required><br>
@ -86,16 +88,19 @@
<button type="button" onclick="updateUserProfile()">Update Profile</button>
<br><br>
<label for="updateNewEmail">New Email:</label>
<input type="email" id="updateNewEmail" name="updateNewEmail" required><br>
<button type="button" onclick="updateEmail()">Update Email</button>
</form><br>
<br>
</div>
<hr>
<div class="form-container" id="changePasswordForm">
<h1>Change Password</h1>
<form>
<label for="changeOldPassword">Old Password:</label>
<input type="password" id="changeOldPassword" name="changeOldPassword" required><br>
@ -103,7 +108,8 @@
<input type="password" id="changeNewPassword" name="changeNewPassword" required><br>
<button type="button" onclick="changePassword()">Change Password</button>
</form><br>
<br>
</div>
<button type="button" onclick="logout()">Logout</button><br>
<hr>