fix: can't login by github after disable guest (close #3314)

This commit is contained in:
Andy Hsu
2023-02-09 20:08:50 +08:00
parent d87878c232
commit 43a8ed472b
2 changed files with 5 additions and 17 deletions

View File

@ -34,8 +34,10 @@ func Init(r *gin.Engine) {
auth.POST("/me/update", handles.UpdateCurrent)
auth.POST("/auth/2fa/generate", handles.Generate2FA)
auth.POST("/auth/2fa/verify", handles.Verify2FA)
auth.GET("/auth/github", handles.GithubLoginRedirect)
auth.GET("/auth/github_callback", handles.GithubLoginCallback)
// github auth
api.GET("/auth/github", handles.GithubLoginRedirect)
api.GET("/auth/github_callback", handles.GithubLoginCallback)
// no need auth
public := api.Group("/public")