mirror of
https://github.com/restic/rest-server.git
synced 2026-09-25 21:41:25 -07:00
htpasswd file relative to repo
This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func Authorize(r *http.Request, c *Context) error {
|
func Authorize(r *http.Request, c *Context) error {
|
||||||
|
|
||||||
file := filepath.Join(c.path, ".htpasswd")
|
file := filepath.Join(c.path, ".htpasswd")
|
||||||
htpasswd, err := NewHtpasswdFromFile(file)
|
htpasswd, err := NewHtpasswdFromFile(file)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user