Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 40c11b4

Browse filesBrowse files
committed
fix(login) redirect to topics after login
1 parent 1a4c596 commit 40c11b4
Copy full SHA for 40c11b4

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎composables/useAuth.ts

Copy file name to clipboardExpand all lines: composables/useAuth.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export async function registerWithEmail(
7171

7272
if (data) {
7373
useState('user').value = data
74-
await useRouter().push('/dashboard')
74+
await useRouter().push('/topics')
7575
}
7676
} catch (e) {
7777
console.log('error: ' + e.toString())
@@ -84,7 +84,7 @@ export async function loginWithEmail(usernameOrEmail: string, password: string):
8484
const user = await $fetch<IUser>('/api/auth/login', { method: 'POST', body: { usernameOrEmail: usernameOrEmail, password: password } })
8585
console.log(user)
8686
useState('user').value = user
87-
await useRouter().push('/dashboard')
87+
await useRouter().push('/topics')
8888
return true
8989
} catch(e) {
9090
return false

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.