Commit 1be2f6f9 by Jonathan Reinink Committed by GitHub

Merge pull request #64 from tonjohn/patch-1

Hash password only once
2 parents a8e0d42a 9f93e151
Showing with 1 additions and 1 deletions
......@@ -32,7 +32,7 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac
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)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!