feat: Closes #14 更新用户模型,确保用户名字段为非空;优化OIDC请求和用户信息处理逻辑;添加新的重写规则以支持HTTPS
All checks were successful
Push to Helm Chart Repository / build (push) Successful in 19s

This commit is contained in:
2025-09-14 13:54:23 +08:00
parent 78cc596544
commit a0b2c75839
6 changed files with 405 additions and 399 deletions

View File

@ -7,7 +7,7 @@ import (
type User struct {
gorm.Model
Username string `gorm:"uniqueIndex"` // 用户名,唯一
Username string `gorm:"uniqueIndex;not null"` // 用户名,唯一
Nickname string
AvatarUrl string
Email string `gorm:"uniqueIndex"`