feat(oauth2): add default role assignment for new OAuth2 users (#688)

- Add default role assignment logic in OAuth2 login flow
- Import getStringValue and getUserRoles utilities
- Validate default role exists in system before assignment
- Use ON CONFLICT DO NOTHING to preserve existing user roles
- Add proper error handling for role assignment failures
This commit is contained in:
Dream Hunter
2025-07-14 23:55:36 +08:00
committed by GitHub
parent 1303b0f2a9
commit c96d180591
2 changed files with 17 additions and 1 deletions
+1
View File
@@ -4,6 +4,7 @@
## main(v1.0.1)
- feat: |UI| 增加极简模式主页, 可在 `外观` 中切换
- fix: 修复 oauth2 登录时,default role 不生效的问题
## v1.0.0