feat: SSO auto register (close #4692 in #4795)

Co-authored-by: Andy Hsu <i@nn.ci>
This commit is contained in:
WintBit
2023-07-20 16:30:30 +08:00
committed by GitHub
parent cace9db12f
commit de8f9e9eee
4 changed files with 190 additions and 140 deletions

View File

@ -33,7 +33,7 @@ type User struct {
// 10: can add qbittorrent tasks
Permission int32 `json:"permission"`
OtpSecret string `json:"-"`
SsoID string `json:"sso_id"`
SsoID string `json:"sso_id"` // unique by sso platform
}
func (u User) IsGuest() bool {