Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion providers/password/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
3 changes: 3 additions & 0 deletions providers/password/views/mailers/auth/confirmation.txt.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p>Please click on the below link to validate your email address:</p>

<p><a href="{{confirm_url}}">{{confirm_url}}</a></p>