onCreate-user-set-default-fields.js revision a40daee24e5a9d8820cf0e83ff7a0a16f94c9ab0
/**
* 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) {
}
/*
if (!object.frequentlyUsedApplications) {
object.frequentlyUsedApplications = "";
}
if (!object.userApplicationsOrder) {
object.userApplicationsOrder = "";
}
*/
//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) {
}
}