aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/settings/security
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-03-04 09:23:03 -0800
committerAdam Soltys <[email protected]>2026-03-04 09:23:03 -0800
commitba579c4f801be258128294e7cb1f4d2e518e37ca (patch)
tree2ffbee38d5d82d06580a68ffddd798c1930d6ded /src/routes/(app)/settings/security
parente39b182ac4c2134157eca3f4cc7c8c7dfd389484 (diff)
downloadcoinos-ui-ba579c4f801be258128294e7cb1f4d2e518e37ca.tar.gz
coinos-ui-ba579c4f801be258128294e7cb1f4d2e518e37ca.zip
fix api calls
Diffstat (limited to 'src/routes/(app)/settings/security')
-rw-r--r--src/routes/(app)/settings/security/+page.svelte4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/(app)/settings/security/+page.svelte b/src/routes/(app)/settings/security/+page.svelte
index 6ba91240..6e779eb8 100644
--- a/src/routes/(app)/settings/security/+page.svelte
+++ b/src/routes/(app)/settings/security/+page.svelte
@@ -136,7 +136,7 @@
let enable2fa = async (twoFa?: any) => {
try {
if (setting2fa && token && token.length === 6) {
- await post("/api/2fa", { token });
+ await post("/2fa", { token });
success("2FA enabled");
user.twofa = 1;
cancel();
@@ -150,7 +150,7 @@
let disable2fa = async (_?: any) => {
try {
if (disabling2fa && token && token.length === 6) {
- await post("/api/disable2fa", { token });
+ await post("/disable2fa", { token });
success("2FA disabled");
delete user.twofa;
disabling2fa = false;