fix: possible fix for proxy auth requiring login page

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
This commit is contained in:
Henrique Dias committed 2019-02-15 12:58:45 +00:00
1 parent 85899acae6
commit 84f108f1c5
6 files changed
+24 -1

No files matched your search

+5
View File
@@ -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
}