API Reference

Users.setPassword



Syntax

bool users.setPassword ( int uid, string password, string previousPassword = '', string verificationCode = NULL )

Arguments

NameTypeRequiredDefault valueDescription
uidintRequirednoneThe id of the user
passwordstringRequirednoneThe users new desired password
previousPasswordstringOptional''The users previous password, required if verification code is not provided.
verificationCodestringOptionalNULLThe one time SMS or Email code the user received from regenerateCode - mandatory if previousPassword is non existant

Sample Response

Code examples

0 comments

Be the first to comment on setPassword.

Add a Comment

  • captcha