mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-04 04:24:26 +00:00
Also covered ProfileController.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,5 +15,7 @@ interface UserRepositoryInterface
|
||||
|
||||
public function findByEmail($email);
|
||||
|
||||
public function updatePassword(\User $user,$password);
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user