Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Agendador
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Agendador
Agendador
Commits
34e7408b
Commit
34e7408b
authored
Dec 14, 2016
by
Bruno Freitas Tissei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix invalid cpf error message on restore password
Signed-off-by:
Bruno Freitas Tissei
<
bft15@inf.ufpr.br
>
parent
f5d2f13e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
app/controllers/passwords_controller.rb
app/controllers/passwords_controller.rb
+7
-7
No files found.
app/controllers/passwords_controller.rb
View file @
34e7408b
...
@@ -14,13 +14,13 @@ class PasswordsController < Devise::PasswordsController
...
@@ -14,13 +14,13 @@ class PasswordsController < Devise::PasswordsController
if
self
.
resource
if
self
.
resource
resource_name
=
:citizen
resource_name
=
:citizen
resource_class
=
Citizen
resource_class
=
Citizen
else
#
else
self
.
resource
=
Professional
.
where
(
:cpf
=>
cpf
).
first
#
self.resource = Professional.where(:cpf => cpf).first
#
if
self
.
resource
#
if self.resource
resource_name
=
:professional
#
resource_name = :professional
resource_class
=
Professional
#
resource_class = Professional
end
#
end
end
end
if
self
.
resource
and
resource_name
and
resource_class
if
self
.
resource
and
resource_name
and
resource_class
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment