Commit 34e7408b authored by Bruno Freitas Tissei's avatar Bruno Freitas Tissei

Fix invalid cpf error message on restore password

Signed-off-by: Bruno Freitas Tissei's avatarBruno Freitas Tissei <bft15@inf.ufpr.br>
parent f5d2f13e
......@@ -14,13 +14,13 @@ class PasswordsController < Devise::PasswordsController
if self.resource
resource_name = :citizen
resource_class = Citizen
else
self.resource = Professional.where(:cpf => cpf).first
if self.resource
resource_name = :professional
resource_class = Professional
end
# else
# self.resource = Professional.where(:cpf => cpf).first
#
# if self.resource
# resource_name = :professional
# resource_class = Professional
# end
end
if self.resource and resource_name and resource_class
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment