UserService.GetByEmail Method

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

GetByEmail(string, bool, bool)

Gets the User with the specified email address.

public static User GetByEmail(string email, bool sudo = false, bool trashed = false)

Parameters

email
string

The email of the user.

sudo
bool

true to perform action as super user, otherwise false.

trashed
bool

true to return user even if trashed, otherwise false.

Returns

User

Returns an instance of the User class.