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 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:
+ +