diff --git a/providers/password/confirm.go b/providers/password/confirm.go index 72ff442..52216dc 100644 --- a/providers/password/confirm.go +++ b/providers/password/confirm.go @@ -64,7 +64,7 @@ var DefaultConfirmationMailer = func(email string, context *auth.Context, claims // DefaultConfirmHandler default confirm handler var DefaultConfirmHandler = func(context *auth.Context) error { var ( - authInfo auth_identity.Basic + authInfo auth_identity.AuthIdentity provider, _ = context.Provider.(*Provider) tx = context.Auth.GetDB(context.Request) token = context.Request.URL.Query().Get("token") diff --git a/providers/password/handlers.go b/providers/password/handlers.go index a74ceb7..a7dce03 100644 --- a/providers/password/handlers.go +++ b/providers/password/handlers.go @@ -14,7 +14,7 @@ import ( // DefaultAuthorizeHandler default authorize handler var DefaultAuthorizeHandler = func(context *auth.Context) (*claims.Claims, error) { var ( - authInfo auth_identity.Basic + authInfo auth_identity.AuthIdentity req = context.Request tx = context.Auth.GetDB(req) provider, _ = context.Provider.(*Provider) @@ -48,7 +48,7 @@ var DefaultRegisterHandler = func(context *auth.Context) (*claims.Claims, error) err error currentUser interface{} schema auth.Schema - authInfo auth_identity.Basic + authInfo auth_identity.AuthIdentity req = context.Request tx = context.Auth.GetDB(req) provider, _ = context.Provider.(*Provider)