dev #1
1 changed files with 3 additions and 3 deletions
|
@ -123,10 +123,10 @@ async function register(e: Event) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
console.log("Sending registration data");
|
console.log("Sending registration data");
|
||||||
try {
|
try {
|
||||||
await auth.register(form.username, form.email, form.password);
|
await auth.register(form.username, form.email, form.password);
|
||||||
return await navigateTo(query.redirect_to);
|
return await navigateTo(query.redirect_to);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error registering:", error);
|
console.error("Error registering:", error);
|
||||||
}
|
}
|
||||||
//return navigateTo(redirectTo ? redirectTo as string : useAppConfig().baseURL as string);
|
//return navigateTo(redirectTo ? redirectTo as string : useAppConfig().baseURL as string);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue