feat(api): FRO-14 Create Game (#14)
Added functionality to create Game so that it creates a game in the Backend Co-authored-by: LQ63 <lkhermann@web.de> Reviewed-on: #14 Reviewed-by: Janis <janis-e@gmx.de> Co-authored-by: lq64 <lq@blackhole.local> Co-committed-by: lq64 <lq@blackhole.local>
This commit is contained in:
@@ -80,7 +80,7 @@ const onSubmit = () => {
|
||||
loginError.value = ''
|
||||
axios.post(`${api}/login`, {username: username.value, password: password.value}, {withCredentials: true}).then((response) => {
|
||||
uInfo.setUserInfo(response.data.user.username, response.data.user.id)
|
||||
router.push("/")
|
||||
router.push("/mainmenu")
|
||||
}).catch(() => {
|
||||
loginError.value = 'Invalid username or password'
|
||||
}).finally(() =>
|
||||
|
||||
Reference in New Issue
Block a user