renames signout function

This commit is contained in:
bergquist
2019-01-31 16:26:36 +01:00
parent 43ac79685a
commit 88ca54eba9
5 changed files with 8 additions and 13 deletions
+1 -1
View File
@@ -149,4 +149,4 @@ func (s *fakeUserAuthTokenService) UserAuthenticatedHook(user *m.User, c *m.ReqC
return nil
}
func (s *fakeUserAuthTokenService) UserSignedOutHook(c *m.ReqContext) error { return nil }
func (s *fakeUserAuthTokenService) SignOutUser(c *m.ReqContext) error { return nil }
+1 -1
View File
@@ -136,7 +136,7 @@ func (hs *HTTPServer) loginUserWithUser(user *m.User, c *m.ReqContext) {
}
func (hs *HTTPServer) Logout(c *m.ReqContext) {
hs.AuthTokenService.UserSignedOutHook(c)
hs.AuthTokenService.SignOutUser(c)
if setting.SignoutRedirectUrl != "" {
c.Redirect(setting.SignoutRedirectUrl)