Merge pull request #64 from tonjohn/patch-1

Hash password only once
This commit is contained in:
Jonathan Reinink 2020-03-21 09:48:52 -04:00 committed by GitHub
commit 1be2f6f90f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)