MCPcopy Index your code
hub / github.com/filebrowser/filebrowser / JSONAuth

Struct JSONAuth

auth/json.go:28–30  ·  view source on GitHub ↗

JSONAuth is a json implementation of an Auther.

Source from the content-addressed store, hash-verified

26
27// JSONAuth is a json implementation of an Auther.
28type JSONAuth struct {
29 ReCaptcha *ReCaptcha `json:"recaptcha" yaml:"recaptcha"`
30}
31
32// Auth authenticates the user via a json in content body.
33func (a JSONAuth) Auth(r *http.Request, usr users.Store, _ *settings.Settings, srv *settings.Server) (*users.User, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected