fix: possible fix for proxy auth requiring login page
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
This commit is contained in:
1 parent
85899acae6
commit
84f108f1c5
6 files changed
+24
-1
No files matched your search
@@ -17,3 +17,8 @@ type NoAuth struct{}
|
||||
func (a NoAuth) Auth(r *http.Request, sto *users.Storage, root string) (*users.User, error) {
|
||||
return sto.Get(root, uint(1))
|
||||
}
|
||||
|
||||
// LoginPage tells that no auth doesn't require a login page.
|
||||
func (a NoAuth) LoginPage() bool {
|
||||
return false
|
||||
}
|
||||
Reference in new issue
Block a user