18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix: Built-in Scripting Language<br />

Note: You can use this function to remove only those users you created using the CreateUser( )<br />

function.<br />

SetPassword<br />

Use to specify a new user password.<br />

Function Group Execution Windows Embedded Thin Client<br />

SetPassword Security Synchronous Supported Supported Supported<br />

Syntax<br />

SetPassword( strUserName, optStrNewPassword )<br />

strUserName<br />

The name of the user.<br />

optStrNewPassword<br />

Optional The new password<br />

Note: If you omit the this parameter, then the SetPassword function will launch<br />

an Enter a new password dialog, so the user can enter a new password.<br />

Returned value<br />

This function returns the following possible values:<br />

Value<br />

Description<br />

-1 Internal error; contact <strong>Technical</strong> Support.<br />

0 Password set successfully.<br />

1 Invalid number of parameters.<br />

2 Wrong parameter type.<br />

3 Specified user does not exist.<br />

4 Reentrant call not allowed.<br />

5 User clicked Cancel.<br />

6 Group does not exist.<br />

7 Password too weak.<br />

8 Invalid password.<br />

9 Invalid user.<br />

10 User currently logged on does not have the rights to set user password (i.e.,<br />

user does not have Edit Security System).<br />

11 Server offline.<br />

12 Error.<br />

13 Confirm password does not match.<br />

14 Would open dialog.<br />

15 The current Security Mode does not allow user password to be changed.<br />

Page 594<br />

<strong>InduSoft</strong> Web Studio

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!