mirror of
https://github.com/AlistGo/alist.git
synced 2025-11-26 03:45:05 +08:00
perf: sha256 for user's password (close #3552)
This commit is contained in:
@@ -46,6 +46,7 @@ func Init(e *gin.Engine) {
|
||||
auth := api.Group("", middlewares.Auth)
|
||||
|
||||
api.POST("/auth/login", handles.Login)
|
||||
api.POST("/auth/login/hash", handles.LoginHash)
|
||||
auth.GET("/me", handles.CurrentUser)
|
||||
auth.POST("/me/update", handles.UpdateCurrent)
|
||||
auth.POST("/auth/2fa/generate", handles.Generate2FA)
|
||||
|
||||
Reference in New Issue
Block a user