Skip to content

Commit

Permalink
feat: redirect if auth success
Browse files Browse the repository at this point in the history
  • Loading branch information
AvilaAndre committed Nov 16, 2024
1 parent 29de5f9 commit 03ee834
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/routes/(app)/login/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
password
})
}).then((res) => res.ok);
message = success ? 'Login successful' : 'Login failed';
if (success == true) {
window.location.href = '/';
}
}
</script>

Expand Down

0 comments on commit 03ee834

Please sign in to comment.