UserService.ResetPassword Method

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

ResetPassword(int, string, string, bool)

Resets a user's password.

public static bool ResetPassword(int id, string token, string newPassword, bool sudo = false)

Parameters

id
int

Id of the user for which to reset password.

token
string

The password verification token.

newPassword
string

The new password.

sudo
bool

true to perform action as super user, otherwise false.

Returns

bool

The new password for the User