UserConfig.js revision 2d7019e19039fd083850f76e54b6b26a7b06a8f2
d72b59ef0fcc0226a5a655ad967e4c24729afa3ePhill Cunnington * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
d72b59ef0fcc0226a5a655ad967e4c24729afa3ePhill Cunnington * Copyright © 2011 ForgeRock AS. All rights reserved.
d72b59ef0fcc0226a5a655ad967e4c24729afa3ePhill Cunnington * The contents of this file are subject to the terms
d72b59ef0fcc0226a5a655ad967e4c24729afa3ePhill Cunnington * of the Common Development and Distribution License
d72b59ef0fcc0226a5a655ad967e4c24729afa3ePhill Cunnington * (the License). You may not use this file except in
d72b59ef0fcc0226a5a655ad967e4c24729afa3ePhill Cunnington * compliance with the License.
d72b59ef0fcc0226a5a655ad967e4c24729afa3ePhill Cunnington * You can obtain a copy of the License at
d72b59ef0fcc0226a5a655ad967e4c24729afa3ePhill Cunnington * http://forgerock.org/license/CDDLv1.0.html
d72b59ef0fcc0226a5a655ad967e4c24729afa3ePhill Cunnington * See the License for the specific language governing
d72b59ef0fcc0226a5a655ad967e4c24729afa3ePhill Cunnington * permission and limitations under the License.
d72b59ef0fcc0226a5a655ad967e4c24729afa3ePhill Cunnington * When distributing Covered Code, include this CDDL
d72b59ef0fcc0226a5a655ad967e4c24729afa3ePhill Cunnington * Header Notice in each file and include the License file
d72b59ef0fcc0226a5a655ad967e4c24729afa3ePhill Cunnington * at http://forgerock.org/license/CDDLv1.0.html
d72b59ef0fcc0226a5a655ad967e4c24729afa3ePhill Cunnington * If applicable, add the following below the CDDL Header,
d72b59ef0fcc0226a5a655ad967e4c24729afa3ePhill Cunnington * with the fields enclosed by brackets [] replaced by
d72b59ef0fcc0226a5a655ad967e4c24729afa3ePhill Cunnington * your own identifying information:
d72b59ef0fcc0226a5a655ad967e4c24729afa3ePhill Cunnington * "Portions Copyrighted [year] [name of copyright owner]"
d72b59ef0fcc0226a5a655ad967e4c24729afa3ePhill Cunnington/*global define*/
d72b59ef0fcc0226a5a655ad967e4c24729afa3ePhill Cunnington * @author yaromin
15f60c5ba586de69e94c6045e9bf91103e924020James Phillpottsdefine("config/process/UserConfig",["app/util/Constants", "app/comp/common/eventmanager/EventManager"],
d72b59ef0fcc0226a5a655ad967e4c24729afa3ePhill Cunnington startEvent: constants.FORGOTTEN_PASSWORD_CHANGED_SUCCESSFULLY,
d72b59ef0fcc0226a5a655ad967e4c24729afa3ePhill Cunnington processDescription: function(event, messagesCtrl) {
d72b59ef0fcc0226a5a655ad967e4c24729afa3ePhill Cunnington messagesCtrl.displayMessage('info', 'Password has been changed');
d72b59ef0fcc0226a5a655ad967e4c24729afa3ePhill Cunnington eventManager.sendEvent(constants.EVENT_LOGIN_REQUEST, { userName: event.userName, password: event.password});
a6fc9ae6bd096a653649fdf8e4189f102dd4cdf2Phill Cunnington eventManager.sendEvent(constants.EVENT_SUCCESFULY_LOGGGED_IN, event.uid);
9dc0bc74a8acbd729d3d316f53c20901662d0283Phill Cunnington processDescription: function(event, loginCtrl) {
9dc0bc74a8acbd729d3d316f53c20901662d0283Phill Cunnington loginCtrl.loginUser(event.userName, event.password);
9dc0bc74a8acbd729d3d316f53c20901662d0283Phill Cunnington startEvent: constants.EVENT_USER_REGISTRATION_ERROR,
d72b59ef0fcc0226a5a655ad967e4c24729afa3ePhill Cunnington processDescription: function(event, messagesCtrl) {
dependencies: [
dependencies: [
dependencies: [
eventManager.sendEvent(constants.EVENT_LOGIN_REQUEST, { userName: event.user.userName, password: event.user.password});
dependencies: [
dependencies: [
dependencies: [
dependencies: [
dependencies: [
"app/comp/main/Configuration",
"app/comp/main/Configuration",
processDescription: function(userName, userDelegate, conf, profileCtrl, loginCtrl, messagesCtrl, appConfiguration, navigationCtrl) {
function(user) {
eventManager.sendEvent(constants.EVENT_SWITCH_VIEW_REQUEST, {viewId: "app/comp/admin/usermanagement/UsersCtrl"});
dependencies: [
dependencies: [
"app/comp/main/Configuration",
return obj;