users.regenerateCode

Syntax

array users.regenerateCode ( int vhost, int uid = 0, string phone = '', string email = '', string username = '', int|bool sendEmail = 0, int|bool sendSMS = false )

Argument Info

NameTypeRequiredDefault valueDescription
vhostintRequirednoneID of the application that the media is in.
uidintOptional0ID of the user.
phonestringOptional''number of the user.
emailstringOptional''
usernamestringOptional''username of the user.
sendEmailint|boolOptional0ID of the email template to use, if 0 no email will be sent
sendSMSint|boolOptionalfalseWhether or not to send an sms messge to activate the user that is used in the registration call. When true an sms message is sent to the phone number provided in the array.

Return Values

FieldDescriptionPossible Values