UserService.GetByToken Method

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

GetByToken(string, bool, bool, bool)

Gets the User with the specified token.

public static User GetByToken(string token, bool verify = true, bool sudo = false, bool trashed = false)

Parameters

token
string

The token.

verify
bool

true to verify that the token is still valid, otherwise false.

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.