Movicon Help on Line - Rel. 11.7.1302
Movicon allows you to create customized Password Dialog Windows which open when user authentication is required or when an expired user password needs to be re-entered. Customized windows can be created by using the Movicon screens and symbols. The custom window can be created with a screen within which a "Editable Display" can be positioned with a series of "Buttons". The screen must be inserted in the project's "Get Password Screen" or "Expired Password Screen" general properties in order to be managed by Movicon instead of the one for default. This will ensure that the customized screen will open instead of the one for default when user authentication is required and it will open in modal mode. In addition to the two 'Get Password Screen' and 'Expired Password Screen' screens, you will need to manage some local system variables which are needed to enable the user authentication to function correctly. These variables are:
The local variable to use for the user authentication "Password Screen" are:
user_ = variable in which the name of the user must be written and used for requesting authentication. The user_ variable must be declared as string type.
password_ = variable in which the password must be written for user authentication. The password_ variable must be declared as string type.
OK_ = this variable is needed in the screen's closing phase. When its value is different from zero, the screen will execute the authentication of the user entered when closing. When its value is set to zero, the user will not be logged in when the screen closes. The OK_ variable must be declared Bit type
title_ = when Movicon opens the Screen, the local title_ variable is set with the requested user level value. The title_ variable must be declared string type.
reset_ = when this variable obtains a value that is not zero, it forces the password renewal of the user logged in. This variable can be associated to an object, such as the Checkbox for example, in the custom Password Dialog Window which resets the local variable when different from zero.
For entering expired passwords, "Expired Password Screen", the local screen variables used are:
nMinimunPasswordLength_ = when Movicon opens the Screen, the nMinimunPasswordLength_ is set with the password's minimum length value. This value is the same one set in the users "Min. Password Length" property. The nMinimunPasswordLength_ variable must be declared integer type
password_ = variable in which the new password, to be associated to the user, is written. The password_ variable must be declared string type
OK_ = this variable is needed in the screen's closure phase. When its value is different from zero, the new password will get associated to the user when the screen closes. However, when the value is set at zero, the new password will not get associated to the user when the screen closes. The OK_ variable must be declared Bit type
title_ = when Movicon opens the screen the local title_ variable is set with the name of the user changing their password. The title_ variable must be declared string type
userLocked_ = blocks any editing of the user's name for which the Password window has been opened using the UIInterface's GetPasswordFromUser() function with the optional 'bLockUserName' parameter set to true.
|
The above described local variables must be created by the programmer when needing to use the exact syntaxes. When using Templates from the Movicon Symbol Library, the local variables will be created automatically when inserted on screen. |