From d026556eec0e47f082bdb0905192626e91f03fc7 Mon Sep 17 00:00:00 2001 From: CaiMin Date: Tue, 27 Nov 2018 10:37:07 +0800 Subject: [PATCH 1/3] =?UTF-8?q?Fixed=EF=BC=9AUnknown=20column=20'basics.pr?= =?UTF-8?q?ovider'=20in=20'where=20clause')=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- providers/password/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/password/handlers.go b/providers/password/handlers.go index a74ceb7..2a89fec 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) From b88b635bb4a333136993b1d06259907a18887ca8 Mon Sep 17 00:00:00 2001 From: CaiMin Date: Tue, 27 Nov 2018 11:02:34 +0800 Subject: [PATCH 2/3] =?UTF-8?q?Fixed=EF=BC=9AWhen=20registered=20caused=20?= =?UTF-8?q?Unknown=20column=20'basics.provider'=20in=20'where=20clause')?= =?UTF-8?q?=3F=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- providers/password/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/password/handlers.go b/providers/password/handlers.go index 2a89fec..a7dce03 100644 --- a/providers/password/handlers.go +++ b/providers/password/handlers.go @@ -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) From 88b3113fa9a386b2b6d7c018d3ae8070ce6ae531 Mon Sep 17 00:00:00 2001 From: CaiMin Date: Tue, 27 Nov 2018 11:20:37 +0800 Subject: [PATCH 3/3] =?UTF-8?q?Fixed=EF=BC=9AWhen=20confirmed=20caused=20U?= =?UTF-8?q?nknown=20column=20'basics.provider'=20in=20'where=20clause')=3F?= =?UTF-8?q?=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- providers/password/confirm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")