用户管理与数据操作

This commit is contained in:
tianmo committed 2026-10-27 11:03:36 +08:00
1 parent ed0f20b754
commit 51d3acfbb5
14 files changed
+256 -33

No files matched your search

+1 -1
View File
@@ -154,7 +154,7 @@ export async function getCurrentUser(event: H3Event): Promise<AuthUser | null> {
}
const user = findUserById(session.user_id)
if (!user) return null
if (!user || user.disabled_at) return null
return rowToAuthUser(user)
}