Removed conflicting and redundant logic

This commit is contained in:
2025-02-10 13:39:17 +01:00
parent 9413fdbb2f
commit 592d1df9bf
7 changed files with 14 additions and 43 deletions

View File

@ -40,15 +40,6 @@ const email = ref('')
const formError = ref('')
const showPassword = ref(false)
// automatic login because of development
onMounted(async () => {
const token = useCookies().get('token')
if (token) {
gameStore.setToken(token)
gameStore.initConnection()
}
})
async function submit() {
// check if username and password are valid
if (username.value === '' || email.value === '' || password.value === '') {