feat(sftp-server): public key login (#7668)
This commit is contained in:
@ -52,6 +52,9 @@ func Init(e *gin.Engine) {
|
||||
api.POST("/auth/login/ldap", handles.LoginLdap)
|
||||
auth.GET("/me", handles.CurrentUser)
|
||||
auth.POST("/me/update", handles.UpdateCurrent)
|
||||
auth.GET("/me/sshkey/list", handles.ListMyPublicKey)
|
||||
auth.POST("/me/sshkey/add", handles.AddMyPublicKey)
|
||||
auth.POST("/me/sshkey/delete", handles.DeleteMyPublicKey)
|
||||
auth.POST("/auth/2fa/generate", handles.Generate2FA)
|
||||
auth.POST("/auth/2fa/verify", handles.Verify2FA)
|
||||
auth.GET("/auth/logout", handles.LogOut)
|
||||
@ -102,6 +105,8 @@ func admin(g *gin.RouterGroup) {
|
||||
user.POST("/cancel_2fa", handles.Cancel2FAById)
|
||||
user.POST("/delete", handles.DeleteUser)
|
||||
user.POST("/del_cache", handles.DelUserCache)
|
||||
user.GET("/sshkey/list", handles.ListPublicKeys)
|
||||
user.POST("/sshkey/delete", handles.DeletePublicKey)
|
||||
|
||||
storage := g.Group("/storage")
|
||||
storage.GET("/list", handles.ListStorages)
|
||||
|
Reference in New Issue
Block a user