UserService.ChangePassword Method

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

ChangePassword(int, string, string)

Updates the password for the User.

public static bool ChangePassword(int id, string oldPassword, string newPassword)

Parameters

id
int

Id of the user that want to change password.

oldPassword
string

The current password.

newPassword
string

The new password.

Returns

bool

true if the update was successful; otherwise, false.