diff --git a/app/src/components/AuthForm.vue b/app/src/components/AuthForm.vue index 7d05cb6..1f658af 100644 --- a/app/src/components/AuthForm.vue +++ b/app/src/components/AuthForm.vue @@ -83,6 +83,16 @@ const handleChange = () => { errorMessage.value = 'Something went wrong' } } + +const registerGuest = async () => { + try { + await api.post('/auth/register-guest') + router.push({ name: 'map' }) + } catch (err) { + console.error(err) + toast.error('Something went wrong.') + } +} @@ -219,6 +229,13 @@ const handleChange = () => {
+