Add method to check if a email exists

This commit is contained in:
René Preuß
2019-12-28 18:42:59 +01:00
parent 0e07c295e3
commit c182baab17
2 changed files with 30 additions and 2 deletions

View File

@@ -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,
]);
}
}