From e3e1aa30c509144736b70a58d44389509fab683b Mon Sep 17 00:00:00 2001 From: Oleg Dolya Date: Thu, 16 Nov 2017 20:47:06 +0200 Subject: [PATCH 1/3] add ignore file --- .gitignore | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2b99136 --- /dev/null +++ b/.gitignore @@ -0,0 +1,28 @@ +# Back end +public +Gemfile.lock +gin-bin +.DS_Store +.idea/ +tmp +worker_data +*.exe +/test/integration/integration +/test/integration/public + +# Example +/example/example +/example/public +/example/harp.json + +/admin/public/ + +# Front end +bower_components +node_modules +__* +*.css.map +*.js.map +*.min.map +.sass-cache +npm-debug.log From c0cefbece8e0366fda0e1f2b3d5001e7268b961e Mon Sep 17 00:00:00 2001 From: Oleg Dolya Date: Mon, 19 Mar 2018 11:09:10 +0200 Subject: [PATCH 2/3] add gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1c2d52b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea/* From b58ee7411e6e015c9ca4903d83760d983d4560d6 Mon Sep 17 00:00:00 2001 From: Oleg Dolya Date: Fri, 21 Sep 2018 09:57:48 +0300 Subject: [PATCH 3/3] Fix issue #11 and copy pull #14 --- providers/password/handlers.go | 3 ++- providers/password/views/mailers/auth/confirmation.txt.tmpl | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 providers/password/views/mailers/auth/confirmation.txt.tmpl diff --git a/providers/password/handlers.go b/providers/password/handlers.go index a74ceb7..472316c 100644 --- a/providers/password/handlers.go +++ b/providers/password/handlers.go @@ -24,7 +24,8 @@ var DefaultAuthorizeHandler = func(context *auth.Context) (*claims.Claims, error authInfo.Provider = provider.GetName() authInfo.UID = strings.TrimSpace(req.Form.Get("login")) - if tx.Model(context.Auth.AuthIdentityModel).Where(authInfo).Scan(&authInfo).RecordNotFound() { + authwhere := auth_identity.AuthIdentity{Basic: authInfo} + if tx.Model(context.Auth.AuthIdentityModel).Where(authwhere).Scan(&authInfo).RecordNotFound() { return nil, auth.ErrInvalidAccount } diff --git a/providers/password/views/mailers/auth/confirmation.txt.tmpl b/providers/password/views/mailers/auth/confirmation.txt.tmpl new file mode 100644 index 0000000..c35110c --- /dev/null +++ b/providers/password/views/mailers/auth/confirmation.txt.tmpl @@ -0,0 +1,3 @@ +

Please click on the below link to validate your email address:

+ +

{{confirm_url}}