Changing user’s password

On the User Edit Window, there is now an extra field called ‘New Password’ which if populated will trigger a password change (an extra request will be made to the WebService’s SetUserPasswordHash method):

For reference here is the Javascript method that makes the call to SetUserPasswordHash:

function updateUserPassword(userId, userName, newPassword, callback)
{
var url = tmWebServices + 'SetUserPasswordHash';
var passwordHash = SHA256(userName + newPassword);
var params =  JSON.stringify( { userId : userId  ,passwordHash : passwordHash  } );
invokeWebService( url, params, callback, defaultErrorHandler);
}
Advertisements

About Dinis Cruz

Dinis Cruz is the main developer of the OWASP O2 Platform and TeamMentor
This entry was posted in Control Panel. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s