mirror of
https://github.com/hacdias/webdav.git
synced 2026-09-22 03:20:41 +08:00
feat: docker images
License: MIT Signed-off-by: Henrique Dias <[email protected]>
This commit is contained in:
@@ -262,7 +262,6 @@ func basicAuth(c *cfg) http.Handler {
|
||||
}
|
||||
|
||||
func checkPassword(saved, input string) bool {
|
||||
|
||||
if strings.HasPrefix(saved, "{bcrypt}") {
|
||||
savedPassword := strings.TrimPrefix(saved, "{bcrypt}")
|
||||
return bcrypt.CompareHashAndPassword([]byte(savedPassword), []byte(input)) == nil
|
||||
|
||||
Reference in New Issue
Block a user