Remove aliasing

This commit is contained in:
Pavel Korotkov 2020-07-21 12:58:53 +03:00
parent 3870f59484
commit 24b19152c4
4 changed files with 10 additions and 10 deletions

View file

@ -4,11 +4,11 @@ import (
"net/http"
"github.com/gorilla/mux"
s3auth "github.com/minio/minio/auth"
"github.com/minio/minio/auth"
"go.uber.org/zap"
)
func attachNewUserAuth(router *mux.Router, center *s3auth.Center, log *zap.Logger) {
func attachNewUserAuth(router *mux.Router, center *auth.Center, log *zap.Logger) {
uamw := func(h http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
_, err := center.AuthenticationPassed(r)