mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 15:43:21 +00:00
small refactoring
This commit is contained in:
parent
b4d923ab26
commit
e85e6fab96
1 changed files with 0 additions and 5 deletions
5
auth.go
5
auth.go
|
@ -11,11 +11,6 @@ func Authorize(r *http.Request) error {
|
|||
return errors.New("malformed basic auth credentials")
|
||||
}
|
||||
|
||||
repo, err := RepositoryName(r.RequestURI)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if username != "user" || password != "pass" {
|
||||
return errors.New("unknown user")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue