diff options
author | Zach Berwaldt <zberwaldt@tutamail.com> | 2024-03-15 22:00:10 -0400 |
---|---|---|
committer | Zach Berwaldt <zberwaldt@tutamail.com> | 2024-03-15 22:00:10 -0400 |
commit | fd1332a3df191577e91c6d846a8b5db1747099fd (patch) | |
tree | b3f045cd06d6622e23441b442e8f3861050ed444 /fe/src/lib/LoginForm.svelte | |
parent | cc49361bcbf689510035e7bbdcce9d8467a36282 (diff) |
cleanup
Diffstat (limited to 'fe/src/lib/LoginForm.svelte')
-rw-r--r-- | fe/src/lib/LoginForm.svelte | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fe/src/lib/LoginForm.svelte b/fe/src/lib/LoginForm.svelte index 8c3c288..cf5febf 100644 --- a/fe/src/lib/LoginForm.svelte +++ b/fe/src/lib/LoginForm.svelte | |||
@@ -1,6 +1,7 @@ | |||
1 | <script lang="ts"> | 1 | <script lang="ts"> |
2 | import { token, user, preferences } from "../stores/auth"; | 2 | import { token, user, preferences } from "../stores/auth"; |
3 | import Card from "./Card.svelte"; | 3 | import Card from "./Card.svelte"; |
4 | import { apiURL } from "../utils"; | ||
4 | 5 | ||
5 | let credentials: CredentialObject = { | 6 | let credentials: CredentialObject = { |
6 | username: "", | 7 | username: "", |
@@ -28,7 +29,7 @@ | |||
28 | } | 29 | } |
29 | const auth = prepareCredentials(credentials); | 30 | const auth = prepareCredentials(credentials); |
30 | 31 | ||
31 | const response = await fetch("http://localhost:8080/api/v1/auth", { | 32 | const response = await fetch(apiURL("auth"), { |
32 | method: "POST", | 33 | method: "POST", |
33 | headers: { | 34 | headers: { |
34 | Authorization: `Basic ${auth}`, | 35 | Authorization: `Basic ${auth}`, |