Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #86 from nodes-vapor/hotfix/case-insensitive-email
Browse files Browse the repository at this point in the history
case insensitive email check on reset pw
  • Loading branch information
siemensikkema authored Aug 31, 2017
2 parents c7ee9e1 + 0126362 commit f4d365d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ open class FrontendResetPasswordController: FrontendResetPasswordControllerType
.flash(.error, "Token is invalid")
}

if user.email != requestData.email {
if user.email.lowercased() != requestData.email.lowercased() {
return Response(redirect: resetPasswordBaseUrl + requestData.token)
.flash(.error, "Email did not match")
}
Expand Down

0 comments on commit f4d365d

Please sign in to comment.