Skip to content

Commit

Permalink
added alert messages
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdedman committed Apr 9, 2024
1 parent 5e15159 commit 62bff99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions views/user/account/update.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ <h1 class="title">Update Account</h1>
.then(response => {
if (response.ok) {
window.location.href = '/user/dashboard';
alert('Account updated successfully.');
} else {
return response.json();
}
Expand Down
1 change: 1 addition & 0 deletions views/user/authentication/signup.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ <h1 class="title">Signup</h1>
.then(response => {
if (response.ok) {
window.location.href = '/login';
alert('Account created successfully. Please log in.')
} else {
return response.json();
}
Expand Down

0 comments on commit 62bff99

Please sign in to comment.