onCreate-user-set-default-fields.js revision a51d95a87538f829bbcaa442e43df70b5e30edc9
/**
* 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.
*/
function requiredUniqeUserName(userName) {
var params = {
"_query-id": "check-userName-availability",
"uid": userName
};
}
}
}
if (!object.lastPasswordSet) {
}
if (!object.postalCode) {
}
if (!object.stateProvince) {
}
if (!object.passwordAttempts) {
}
}
}
}
}
}
if (!object.passPhrase) {
}
}
if (!object.familyName) {
}
if (!object.phoneNumber) {
}
if (!object.frequentlyUsedApplications) {
}
if (!object.userApplicationsOrder) {
}
//password and security answer are generated if missing just to keep those attributes filled
}
if (!object.securityAnswer) {
}
if (!object.securityQuestion) {
}