[This is preliminary documentation and is subject to change.]

Resets the password for a particular user.

Namespace:  OfficeClip.DBLayer.Account
Assembly:  OfficeClip.DBLayer (in OfficeClip.DBLayer)
Version: 8.1.1.0

Syntax

C#
public int ResetPassword(
	int userId,
	string newPassword
)
Visual Basic (Declaration)
Public Function ResetPassword ( _
	userId As Integer, _
	newPassword As String _
) As Integer
Visual C++
public:
int ResetPassword(
	int userId, 
	String^ newPassword
)

Parameters

userId
Type: System..::.Int32
The unique id of the user.
newPassword
Type: System..::.String
New password to be set.

Return Value

0 when successful, -1 in case of an error.

See Also