onCreate-user-set-default-fields.js revision 006579fc6d904d79ff1065cc8aa5c244a00f41ab
/**
* This script sets default fields.
* It forces that user role is openidm-authorized and account status
* is active.
*
* It is run every time new user is created.
*/
}
if (!object.lastPasswordSet) {
}
if (!object.postalCode) {
}
if (!object.stateProvince) {
}
if (!object.passwordAttempts) {
}
if (!object.lastPasswordAttempt) {
}
}
}
}
}
}
if (!object.familyName) {
}
if (!object.phoneNumber) {
}
//password and security answer are generated if missing just to keep those attributes filled
}
}
if (!object.passPhrase) {
}
}
if (!object.securityAnswer) {
}
if (!object.securityQuestion) {
}
if (!object.securityAnswerAttempts) {
}
if (!object.lastSecurityAnswerAttempt) {
}
}