Table of Contents

IUserManager.FindByEmail Method

Retrieves the user with the specified e-mail, or nil if no user is found. If two or more users are found with same e-mail, an exception will be raised, that is why you should only call this method if RequireUniqueEmail is set to true in options. found.

Syntax

Unit: Sphinx.UserManager

function IUserManager.FindByEmail(const Email: string): TUser; virtual; abstract;

Parameters

<-> Parameter Type Description
const Email string The user email to search for.

Returns

The user entity matching the specified search criteria, or nil if it does not exist.

See also