UserService.SetPassword Method

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

SetPassword(int, string, bool)

Set a new password for the specified user.

public static bool SetPassword(int id, string password, bool sudo = false)

Parameters

id
int

Id of the user for which to set password.

password
string

The new password.

sudo
bool

true to perform action as super user, otherwise false.

Returns

bool