Skip to content

Commit 0de564a

Browse files
committed
added login api to login button. Need to sync to link-strabospot account after user has been verified
1 parent 7406a6e commit 0de564a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/login/+Page.client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ function LoginForm() {
2929

3030
const submitForm = async () => {
3131
try {
32-
const res = await fetch("/api/login", {
32+
const res = await fetch("http://Localhost:5500/v2/login", {
3333
method: "POST",
3434
headers: { "Content-Type": "application/json" },
3535
body: JSON.stringify(state),
3636
});
3737

3838
if (!res.ok) {
3939
if (res.status === 502) {
40-
setError("The Sparrow server is not available");
40+
setError("The server is not available");
4141
} else {
4242
setError("Invalid credentials");
4343
}

0 commit comments

Comments
 (0)