mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-10-31 01:58:11 +08:00
feature (search): search as a plugin
This commit is contained in:
@ -86,7 +86,7 @@ func AdminBackend(ctx App, res http.ResponseWriter, req *http.Request) {
|
||||
}
|
||||
|
||||
func AdminAuthenticationMiddleware(ctx App, res http.ResponseWriter, req *http.Request) {
|
||||
drivers := Hooks.All.AuthenticationMiddleware()
|
||||
drivers := Hooks.Get.AuthenticationMiddleware()
|
||||
middlewares := make(map[string]Form, len(drivers))
|
||||
for id, driver := range drivers {
|
||||
middlewares[id] = driver.Setup()
|
||||
|
||||
Reference in New Issue
Block a user