feat(auth): /me 接口返回 has_password 字段,前端 Profile 类型同步调整

This commit is contained in:
fawney19
2026-04-24 14:52:49 +08:00
parent 780f09c1a2
commit e0c928fbe8
5 changed files with 16 additions and 3 deletions

View File

@@ -19,8 +19,8 @@ export interface Profile {
created_at: string
updated_at?: string
last_login_at?: string
auth_source?: 'local' | 'ldap' | 'oauth'
has_password?: boolean
auth_source: 'local' | 'ldap' | 'oauth'
has_password: boolean
preferences?: UserPreferences
}