diff --git a/user/auth/local/login.go b/user/auth/local/login.go index 6ef557f..08eada5 100644 --- a/user/auth/local/login.go +++ b/user/auth/local/login.go @@ -76,7 +76,7 @@ func (s *Extension) LogoutHandler(w http.ResponseWriter, r *http.Request) { return } - if s.OnLoginSuccessful != nil { + if s.OnLogoutSuccessful != nil { sessionUser, err := s.SessionExtension.GetCaller(r) if err != nil {