updated hwsauth to use hlog

This commit is contained in:
2026-01-13 18:07:11 +11:00
parent 1c66e6dd66
commit 7c91cbb08a
3 changed files with 7 additions and 6 deletions

View File

@@ -1,10 +1,10 @@
package hwsauth
import (
"git.haelnorr.com/h/golib/hlog"
"git.haelnorr.com/h/golib/hws"
"git.haelnorr.com/h/golib/jwt"
"github.com/pkg/errors"
"github.com/rs/zerolog"
)
type Authenticator[T Model, TX DBTransaction] struct {
@@ -12,7 +12,7 @@ type Authenticator[T Model, TX DBTransaction] struct {
load LoadFunc[T, TX]
beginTx BeginTX
ignoredPaths []string
logger *zerolog.Logger
logger *hlog.Logger
server *hws.Server
errorPage hws.ErrorPageFunc
SSL bool // Use SSL for JWT tokens. Default true
@@ -28,7 +28,7 @@ func NewAuthenticator[T Model, TX DBTransaction](
load LoadFunc[T, TX],
server *hws.Server,
beginTx BeginTX,
logger *zerolog.Logger,
logger *hlog.Logger,
errorPage hws.ErrorPageFunc,
) (*Authenticator[T, TX], error) {
if load == nil {