Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Письменов Дмитрий Иванович
/
yourroomads
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1be2f6f9
authored
Mar 21, 2020
by
Jonathan Reinink
Committed by
GitHub
Mar 21, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #64 from tonjohn/patch-1
Hash password only once
2 parents
a8e0d42a
9f93e151
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
app/User.php
app/User.php
View file @
1be2f6f
...
@@ -32,7 +32,7 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac
...
@@ -32,7 +32,7 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac
public
function
setPasswordAttribute
(
$password
)
public
function
setPasswordAttribute
(
$password
)
{
{
$this
->
attributes
[
'password'
]
=
Hash
::
make
(
$password
)
;
$this
->
attributes
[
'password'
]
=
Hash
::
needsRehash
(
$password
)
?
Hash
::
make
(
$password
)
:
$password
;
}
}
public
function
photoUrl
(
array
$attributes
)
public
function
photoUrl
(
array
$attributes
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment