Skip to content

Commit

Permalink
Search in the emails field to allow users to sign in with any confirm…
Browse files Browse the repository at this point in the history
…ed email
  • Loading branch information
chrisseto committed Jun 17, 2015
1 parent 8b2f3f7 commit 97cd7a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fakecas.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func serviceValidate(w http.ResponseWriter, r *http.Request) {
c := session.DB(*databasename).C("user")

result := User{}
err = c.Find(bson.M{"username": r.FormValue("ticket")}).One(&result)
err = c.Find(bson.M{"emails": r.FormValue("ticket")}).One(&result)

if err != nil {
fmt.Println("User", r.FormValue("ticket"), "not found.")
Expand Down

0 comments on commit 97cd7a3

Please sign in to comment.