Skip to content

Commit

Permalink
style: rem auth, storage(bolt) and version
Browse files Browse the repository at this point in the history
  • Loading branch information
lovehunter9 committed Feb 26, 2025
1 parent 235c568 commit bfd268b
Show file tree
Hide file tree
Showing 42 changed files with 843 additions and 2,314 deletions.
19 changes: 6 additions & 13 deletions packages/backend/auth/auth.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
package auth

import (
"net/http"

"github.com/filebrowser/filebrowser/v2/settings"
"github.com/filebrowser/filebrowser/v2/users"
)

// Auther is the authentication interface.
type Auther interface {
// Auth is called to authenticate a request.
Auth(r *http.Request, usr users.Store, stg *settings.Settings, srv *settings.Server) (*users.User, error)
// LoginPage indicates if this auther needs a login page.
LoginPage() bool
}
//type Auther interface {
// // Auth is called to authenticate a request.
// Auth(r *http.Request, usr users.Store, stg *settings.Settings, srv *settings.Server) (*users.User, error)
// // LoginPage indicates if this auther needs a login page.
// LoginPage() bool
//}
Loading

0 comments on commit bfd268b

Please sign in to comment.