feat: rehash password with a unique salt for each user
This commit is contained in:
@ -78,7 +78,7 @@ func WebDAVAuth(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
user, err := op.GetUserByName(username)
|
||||
if err != nil || user.ValidatePassword(password) != nil {
|
||||
if err != nil || user.ValidateRawPassword(password) != nil {
|
||||
if c.Request.Method == "OPTIONS" {
|
||||
c.Set("user", guest)
|
||||
c.Next()
|
||||
|
Reference in New Issue
Block a user