Skip to content

Commit

Permalink
Has password only once. See:
Browse files Browse the repository at this point in the history
  • Loading branch information
defenestrator committed Mar 25, 2020
1 parent e619066 commit dd39088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getNameAttribute()

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)
Expand Down

0 comments on commit dd39088

Please sign in to comment.