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 auth = true)

Parameters

id
int

Id of the user for which to reset password.

token
string

The password verification token.

newPassword
string

The new password.

auth
bool

Returns

bool

The new password for the User