mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-21 18:19:03 +08:00
refactor(auth): 移除OAuth中的permission字段及相关逻辑
OAuth登录仅用于云服务,不再影响本地权限系统。移除相关字段和权限映射逻辑,简化代码结构。
This commit is contained in:
@@ -10,7 +10,6 @@ export interface OAuthUserInfo {
|
||||
email: string
|
||||
name: string
|
||||
github_username?: string
|
||||
permission: number
|
||||
}
|
||||
|
||||
export interface OAuthLoginState {
|
||||
@@ -22,7 +21,6 @@ export interface OAuthLoginState {
|
||||
email: string
|
||||
name: string
|
||||
github_username?: string
|
||||
permission: number
|
||||
login_time: string
|
||||
}
|
||||
|
||||
@@ -54,7 +52,6 @@ export function useOAuthPersist() {
|
||||
email: result.data.email,
|
||||
name: result.data.name,
|
||||
github_username: result.data.github_username,
|
||||
permission: result.data.permission,
|
||||
})
|
||||
setIsAuthenticated(true)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user