feat(auth): 用户账户 - 完善个人资料与登录日志 (#752)
Co-authored-by: wuligao <1247662379@qq.com>
This commit is contained in:
1 parent
e70fe1b9c9
commit
4c1d2b4012
83 files changed
+5836
-328
No files matched your search
@@ -14,6 +14,7 @@ type (
|
||||
EmailCodeCooldownError = auth.EmailCodeCooldownError
|
||||
RegisterRequest = auth.RegisterRequest
|
||||
LoginRequest = auth.LoginRequest
|
||||
LoginContext = auth.LoginContext
|
||||
PublicAuthSettings = auth.PublicAuthSettings
|
||||
AuthSessionResult = auth.AuthSessionResult
|
||||
AuthUser = auth.AuthUser
|
||||
@@ -138,8 +139,8 @@ func (s *Service) LoginRateLimitSubject(account string) (string, error) {
|
||||
return s.authDomain().LoginRateLimitSubject(account)
|
||||
}
|
||||
|
||||
func (s *Service) Logout(cookieValue string) error {
|
||||
return s.authDomain().Logout(cookieValue)
|
||||
func (s *Service) Logout(cookieValue string, contexts ...LoginContext) error {
|
||||
return s.authDomain().Logout(cookieValue, contexts...)
|
||||
}
|
||||
|
||||
func (s *Service) CurrentUser(cookieValue string) (*model.User, error) {
|
||||
@@ -206,8 +207,8 @@ func (s *Service) BeginLinuxDOLogin(nextPath string, acceptedTerms bool) (string
|
||||
return s.authDomain().BeginLinuxDOLogin(nextPath, acceptedTerms)
|
||||
}
|
||||
|
||||
func (s *Service) CompleteLinuxDOLogin(stateValue string, code string) (*LinuxDOCallbackResult, error) {
|
||||
return s.authDomain().CompleteLinuxDOLogin(stateValue, code)
|
||||
func (s *Service) CompleteLinuxDOLogin(stateValue string, code string, cookieValue string, contexts ...LoginContext) (*LinuxDOCallbackResult, error) {
|
||||
return s.authDomain().CompleteLinuxDOLogin(stateValue, code, cookieValue, contexts...)
|
||||
}
|
||||
|
||||
func (s *Service) AdminLibTVSetting(actor *model.User) (*PublicLibTVSetting, error) {
|
||||
|
||||
Reference in new issue
Block a user