mirror of
https://github.com/AlistGo/alist.git
synced 2025-06-06 02:21:06 +08:00
fix: can't login by github after disable guest (close #3314)
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user