Skip to content

Commit

Permalink
sytle: final delete auth relative
Browse files Browse the repository at this point in the history
  • Loading branch information
lovehunter9 committed Feb 27, 2025
1 parent f0fb2c7 commit a9f3328
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 106 deletions.
9 changes: 0 additions & 9 deletions packages/backend/auth/auth.go

This file was deleted.

17 changes: 0 additions & 17 deletions packages/backend/auth/none.go

This file was deleted.

29 changes: 0 additions & 29 deletions packages/backend/auth/storage.go

This file was deleted.

16 changes: 1 addition & 15 deletions packages/backend/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,6 @@ user created with the credentials from options "username" and "password".`,
signal.Notify(sigc, os.Interrupt, syscall.SIGTERM)
go cleanupHandler(listener, sigc)

//assetsFs, err := fs.Sub(frontend.Assets(), "dist")
// if err != nil {
// panic(err)
// }

//handler, err := fbhttp.NewHandler(imgSvc, fileCache, d.store, server, assetsFs)
handler, err := fbhttp.NewHandler(imgSvc, fileCache, d.store, server)
checkErr(err)

Expand Down Expand Up @@ -437,15 +431,7 @@ func quickSetup(flags *pflag.FlagSet, d pythonData) {
}

var err error
//if _, noauth := getParamB(flags, "noauth"); noauth {
// set.AuthMethod = auth.MethodNoAuth
// err = d.store.Auth.Save(&auth.NoAuth{})
//} else {
// //set.AuthMethod = auth.MethodJSONAuth
// //err = d.store.Auth.Save(&auth.JSONAuth{})
//}

//checkErr(err)

err = d.store.Settings.Save(set)
checkErr(err)

Expand Down
2 changes: 0 additions & 2 deletions packages/backend/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ func NewHandler(
fileCache FileCache,
store *storage.Storage,
server *settings.Server,
// assetsFs fs.FS,
) (http.Handler, error) {
server.Clean()

Expand All @@ -28,7 +27,6 @@ func NewHandler(
next.ServeHTTP(w, r)
})
})
//index, static := getStaticHandlers(store, server, assetsFs)

// NOTE: This fixes the issue where it would redirect if people did not put a
// trailing slash in the end. I hate this decision since this allows some awful
Expand Down
28 changes: 0 additions & 28 deletions packages/backend/storage/bolt/auth.go

This file was deleted.

3 changes: 1 addition & 2 deletions packages/backend/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
// Storage is a storage powered by a Backend which makes the necessary
// verifications when fetching and saving data to ensure consistency.
type Storage struct {
Users users.Store
//Auth *auth.Storage
Users users.Store
Settings *settings.Storage
}
4 changes: 0 additions & 4 deletions packages/backend/users/storage_test.go

This file was deleted.

0 comments on commit a9f3328

Please sign in to comment.