diff --git a/app/User.php b/app/User.php index dd602dc..f85d8a7 100644 --- a/app/User.php +++ b/app/User.php @@ -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)