Skip to content

Commit

Permalink
Fixing email reset.:
Browse files Browse the repository at this point in the history
  • Loading branch information
charlieMonroe committed Aug 29, 2012
1 parent 4d44fa4 commit 53e7c1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion payola/web/server/app/controllers/Application.scala
Expand Up @@ -48,7 +48,7 @@ object Application extends PayolaController with Secured
val email = req("email")(0)
val password = req("password")(0)

val userOpt = Payola.model.userModel.getByName(email)
val userOpt = Payola.model.userModel.getByEmail(email)
if (userOpt.isEmpty){
Ok(views.html.application.reset_password(None)(new Flash(Map("error" -> "The email you've entered isn't associated with any user in our database."))))
}else{
Expand Down

0 comments on commit 53e7c1f

Please sign in to comment.