Movicon Help on Line - Rel. 11.7.1301
Movicon consents custom Password Dialog Windows which open when user authentication is requested or when needing to re-enter an expired user password. Custom panels can actually be created by using the Movicon screens and symbols. The custom panel can be created with a screen within which a "Editable Display" can be positioned with a series of "Buttons". The screen, in order to be managed by Movicon instead of the one for default, must be inserted in the project's "Get Password Screen" or "Expired Password Screen" general properties. This will ensure that the customized screen will open instead of that for default when user authentication is required. The screen will open in modal mode. In addition to the two screens, 'Get Password Screen' and 'Expired Password Screen', manage some local system variables which are needed so that user authentication works correctly. These variables are:
For user authentication, "Password Screen", the local screen variables used are:
user_ = variable in which the name of the user must be written and used for requesting authentication. The user_ variable must be declared string type
password_ = variable in which the password must be written for user authentication. The password_ variable must be declared 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 at zero, the user will not get 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 on. This variable can be associated to an object such as the Checkbox 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 values is the same 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 describe local variables must be created by the programmer when needed respecting the exact syntaxes. When using Templates from the Movicon Symbol Library, the local variables will be created automatically when inserted on screen. |