mirror of
https://github.com/bitinflow/accounts.git
synced 2026-03-14 14:05:52 +00:00
Add method to check if a email exists
This commit is contained in:
@@ -32,4 +32,18 @@ trait UsersTrait
|
||||
{
|
||||
return $this->post('v2/users', $parameters);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the given email exists.
|
||||
*
|
||||
* @param string $email
|
||||
*
|
||||
* @return Result
|
||||
*/
|
||||
public function isEmailExisting(string $email): Result
|
||||
{
|
||||
return $this->post('v2/users/check-email', [
|
||||
'email' => $email,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user