mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
fix: disable guest login
This commit is contained in:
1 parent
3106ae00d0
commit
9ffcd9fa90
3 files changed
+13
-14
No files matched your search
@@ -87,15 +87,16 @@ const handleChange = () => {
|
||||
}
|
||||
}
|
||||
|
||||
const registerGuest = async () => {
|
||||
try {
|
||||
await api.post('/auth/register-guest')
|
||||
router.push({ name: 'map' })
|
||||
} catch (err) {
|
||||
console.error(err)
|
||||
toast.error('Something went wrong.')
|
||||
}
|
||||
}
|
||||
// Guest account currently disabled
|
||||
// const registerGuest = async () => {
|
||||
// try {
|
||||
// await api.post('/auth/register-guest')
|
||||
// router.push({ name: 'map' })
|
||||
// } catch (err) {
|
||||
// console.error(err)
|
||||
// toast.error('Something went wrong.')
|
||||
// }
|
||||
// }
|
||||
</script>
|
||||
<template>
|
||||
<!-- login page -->
|
||||
@@ -241,13 +242,13 @@ const registerGuest = async () => {
|
||||
</RouterLink></span
|
||||
>
|
||||
</p>
|
||||
<button
|
||||
<!-- <button
|
||||
id="register-guest"
|
||||
class="rounded-lg py-2 mt-3 bg-bg-primary text-text-secondary w-full border-text-secondary border-2"
|
||||
@click="registerGuest()"
|
||||
>
|
||||
{{ t('authform.continue_as_guest') }}
|
||||
</button>
|
||||
</button> -->
|
||||
</form>
|
||||
</div>
|
||||
</template>
|
||||
Reference in new issue
Block a user