Customize Password Complexity Rules
You can customize the password complexity using server scripting (automation scripts) by following two steps:
Step 1. Add a specific key to the web.config file
On the server where the FintechOS installation package resides, go to the web.config file and provide the name of the automation script name which configures the password complexity, by adding the following key:
<appSettings>
<add key="ResetPasswordRulesWorkflowName" value="WorkflowName"/>
...
</appSettings>
If you do not provide the name of the automation script for password complexity customization, the system will search for an on-demand automation server script named “FTOS_ResetPasswordRules”.
Step 2. Create FTOS_ResetPasswordRules on-demand automation script
The server automation script offers customization based on password content and associated user and roles.
For information on how create an on-demand server automation script. For information on how to create an on-demand server automation scripts, see the Innovation Studio User Guide, section Creating On-demand Server Automation Scripts.
var password = context.Values["password"];
if (password.match(/z/))
throwException("Password contains letter z");Context contains two keys in the Values property:
- password
- user, which contains a json similar to:
{
"UserName" : "user1",
"BusinessUnitId" : "guid",
"DisplayName" : "user display name",
"Email" : "user email",
"ExternalId" : "guid",
"OrganizationId" : "guid"
"Roles" :
[
{
"SecurityRoleId" : "guid",
"Name" : "role name 1"
},
{
"SecurityRoleId" : "guid",
"Name" : "role name 2"
},
]
}