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.
- old
Password - string
The current password.
- new
Password - string
The new password.
Returns
bool
true
if the update was successful; otherwise, false
.