Permalink
Browse files

Fixing email reset.:

  • Loading branch information...
1 parent 4d44fa4 commit 53e7c1fd67fe01c30af9d7b597a79b38e1bdb43c charlieMonroe committed Aug 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 payola/web/server/app/controllers/Application.scala
@@ -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{

0 comments on commit 53e7c1f

Please sign in to comment.