mirror of
https://github.com/flarum/core.git
synced 2025-10-26 21:21:28 +01:00
Very rough implementation of forgot password
This commit is contained in:
@@ -45,6 +45,17 @@ class EloquentUserRepository implements UserRepositoryInterface
|
||||
return User::where($field, $identification)->first();
|
||||
}
|
||||
|
||||
/**
|
||||
* Find a user by email.
|
||||
*
|
||||
* @param string $email
|
||||
* @return \Flarum\Core\Models\User|null
|
||||
*/
|
||||
public function findByEmail($email)
|
||||
{
|
||||
return User::where('email', $email)->first();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the ID of a user with the given username.
|
||||
*
|
||||
|
||||
@@ -31,6 +31,14 @@ interface UserRepositoryInterface
|
||||
*/
|
||||
public function findByIdentification($identification);
|
||||
|
||||
/**
|
||||
* Find a user by email.
|
||||
*
|
||||
* @param string $email
|
||||
* @return \Flarum\Core\Models\User|null
|
||||
*/
|
||||
public function findByEmail($email);
|
||||
|
||||
/**
|
||||
* Get the ID of a user with the given username.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user