Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
venjob
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Huỳnh Thiên Phước
venjob
Commits
1a0017dc
Commit
1a0017dc
authored
Aug 14, 2020
by
Huỳnh Thiên Phước
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix update info
parent
02e124be
Pipeline
#913
failed with stages
in 0 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
app/controllers/users_controller.rb
+3
-3
app/helpers/sessions_helper.rb
+1
-1
lib/src/csv_importer.rb
+1
-1
public/uploads/user/cv_user/1/document1.pdf
+0
-0
No files found.
app/controllers/users_controller.rb
View file @
1a0017dc
class
UsersController
<
ApplicationController
before_action
:signed_in_user
,
only:
[
:update
,
:my_page
,
:my_info
]
def
my_page
@user
=
User
.
find
(
current_user
.
id
)
@user
=
current_user
end
def
my_info
@user
=
User
.
find
(
current_user
.
id
)
@user
=
current_user
end
def
update
@user
=
User
.
find
(
current_user
.
id
)
@user
=
current_user
if
BCrypt
::
Password
.
new
(
@user
.
password_digest
)
!=
change_password
[
:oldpassword
]
flash
.
now
[
:danger
]
=
'Old Password is mismatch'
else
...
...
app/helpers/sessions_helper.rb
View file @
1a0017dc
...
...
@@ -21,7 +21,7 @@ module SessionsHelper
end
def
sign_out
current_user
.
update_attribute
(
:remember_token
,
User
.
digest
(
User
.
new_remember_token
))
#
current_user.update_attribute(:remember_token, User.digest(User.new_remember_token))
cookies
.
delete
(
:remember_token
)
self
.
current_user
=
nil
end
...
...
lib/src/csv_importer.rb
View file @
1a0017dc
...
...
@@ -58,7 +58,7 @@ class CSVImporter
description:
description_job
,
level:
level
,
salary:
salary
,
company_id:
company
_
id
)
company_id:
company
.
id
)
industry_name
=
row
[
"category"
]
industries_relationship
=
Industry
.
where
(
name:
industry_name
)
...
...
public/uploads/user/cv_user/1/document1.pdf
0 → 100644
View file @
1a0017dc
File added
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