Also covered ProfileController.

This commit is contained in:
James Cole
2014-07-03 09:16:17 +02:00
parent 516fe54bf0
commit 924ec29eaf
6 changed files with 184 additions and 24 deletions

View File

@@ -51,4 +51,14 @@ class EloquentUserRepository implements UserRepositoryInterface
return \User::where('email', $email)->first();
}
public function updatePassword(\User $user, $password)
{
$password = \Hash::make($password);
/** @noinspection PhpUndefinedFieldInspection */
$user->password = $password;
/** @noinspection PhpUndefinedMethodInspection */
$user->save();
return true;
}
}

View File

@@ -15,5 +15,7 @@ interface UserRepositoryInterface
public function findByEmail($email);
public function updatePassword(\User $user,$password);
}