mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
feat: add loggedIn checks for frontend
This commit is contained in:
1 parent
34c277c886
commit
d939b7eb4d
5 files changed
+37
-21
No files matched your search
@@ -31,7 +31,7 @@ const handleLogin = async () => {
|
||||
async function check() {
|
||||
const user = username.value.trim()
|
||||
try {
|
||||
const res = await api.get('/auth/check', {
|
||||
const res = await api.get('/auth/check-username', {
|
||||
params: { username: user },
|
||||
})
|
||||
// user not exists, try register
|
||||
|
||||
Reference in new issue
Block a user