onCreate-user-set-default-fields.js revision a8c6d744ff331d62689592d572c7cca1135d5feb
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 0N/A * Copyright © 2011-2012 ForgeRock AS. All rights reserved. 0N/A * The contents of this file are subject to the terms 0N/A * of the Common Development and Distribution License 0N/A * (the License). You may not use this file except in 0N/A * compliance with the License. 0N/A * You can obtain a copy of the License at 0N/A * See the License for the specific language governing 0N/A * permission and limitations under the License. 0N/A * When distributing Covered Code, include this CDDL 0N/A * Header Notice in each file and include the License file 0N/A * If applicable, add the following below the CDDL Header, 0N/A * with the fields enclosed by brackets [] replaced by 0N/A * your own identifying information: 0N/A * "Portions Copyrighted [year] [name of copyright owner]" 0N/A * @author jdabrowski 0N/A * This script sets default fields. 0N/A * It forces that user role is openidm-authorized and account status 0N/A * It is run every time new user is created. //password and security answer are generated if missing just to keep those attributes filled