feat: rebuild Single sign-on system (#3649 close #3571)

* rebuild single sign on system

* perf: use cache

* fix: codefactor check

---------

Co-authored-by: Andy Hsu <i@nn.ci>
This commit is contained in:
itsHenry
2023-03-02 17:55:33 +08:00
committed by GitHub
parent f442185aa5
commit 603681fbe6
9 changed files with 237 additions and 155 deletions

View File

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