feat: add ldap login support (#5706)

* feat: add ldap login support

* fix: ldap permission config group
This commit is contained in:
Guobao
2023-12-31 13:46:13 +08:00
committed by GitHub
parent 299bfb4d7b
commit 697a0ed2d3
7 changed files with 189 additions and 0 deletions

View File

@ -48,6 +48,7 @@ func Init(e *gin.Engine) {
api.POST("/auth/login", handles.Login)
api.POST("/auth/login/hash", handles.LoginHash)
api.POST("/auth/login/ldap", handles.LoginLdap)
auth.GET("/me", handles.CurrentUser)
auth.POST("/me/update", handles.UpdateCurrent)
auth.POST("/auth/2fa/generate", handles.Generate2FA)