3 /*********************************************************************************
4 * SugarCRM Community Edition is a customer relationship management program developed by
5 * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
7 * This program is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU Affero General Public License version 3 as published by the
9 * Free Software Foundation with the addition of the following permission added
10 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
11 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
12 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
14 * This program is distributed in the hope that it will be useful, but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
19 * You should have received a copy of the GNU Affero General Public License along with
20 * this program; if not, see http://www.gnu.org/licenses or write to the Free
21 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
25 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
27 * The interactive user interfaces in modified source and object code versions
28 * of this program must display Appropriate Legal Notices, as required under
29 * Section 5 of the GNU Affero General Public License version 3.
31 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
32 * these Appropriate Legal Notices must retain the display of the "Powered by
33 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
34 * technical reasons, the Appropriate Legal Notices must display the words
35 * "Powered by SugarCRM".
36 ********************************************************************************/
43 <script type='text/javascript'>
45 var ERR_RULES_NOT_MET = '{/literal}{$MOD.ERR_RULES_NOT_MET}{literal}';
46 var ERR_ENTER_OLD_PASSWORD = '{/literal}{$MOD.ERR_ENTER_OLD_PASSWORD}{literal}';
47 var ERR_ENTER_NEW_PASSWORD = '{/literal}{$MOD.ERR_ENTER_NEW_PASSWORD}{literal}';
48 var ERR_ENTER_CONFIRMATION_PASSWORD = '{/literal}{$MOD.ERR_ENTER_CONFIRMATION_PASSWORD}{literal}';
49 var ERR_REENTER_PASSWORDS = '{/literal}{$MOD.ERR_REENTER_PASSWORDS}{literal}';
52 <script type='text/javascript' src='{/literal}{sugar_getjspath file="modules/Users/PasswordRequirementBox.js"}{literal}'></script>
53 <style type="text/css">
62 border: 1px solid #444444;
65 background-color: #666666;
87 height: 47.5px !important;
88 width: 250px !important;
100 <form action="index.php" method="post" name="ChangePasswordForm" id="ChangePasswordForm" onsubmit="return document.getElementById('cant_login').value == ''">
101 <table cellpadding="0" align="center" width="100%" cellspacing="0" border="0">
104 <table cellpadding="0" cellspacing="0" border="0" align="center">
106 <td style="padding-bottom: 10px;" ><b>{$MOD.LBL_LOGIN_WELCOME_TO}</b><br />
107 <img src="{$sugar_md}" alt="Sugar" width="340" height="25" /></td>
112 <table cellpadding="0" cellspacing="2" border="0" align="center" width="100%" class="edit view">
114 <td colspan="2" width="100%" style="font-size: 12px; padding-bottom: 5px; font-weight: normal;">{$INSTRUCTION}</td>
116 <input type="hidden" name="entryPoint" value="{$ENTRY_POINT}" />
117 <input type='hidden' name='action' value="{$ACTION}" />
118 <input type='hidden' name='module' value="{$MODULE}" />
119 <input type="hidden" name="guid" value="{$GUID}" />
120 <input type="hidden" name="return_module" value="Home" />
121 <input type="hidden" name="login" value="1" />
122 <input type="hidden" name="is_admin" value="{$IS_ADMIN}" />
123 <input type="hidden" name="cant_login" id="cant_login" value="" />
124 <input type="hidden" name="old_password" id="old_password" value="" />
125 <input type="hidden" name="password_change" id="password_change" value="true" />
126 <input type="hidden" value="" name="user_password" id="user_password" />
127 <input type="hidden" name="page" value="Change" />
128 <input type="hidden" name="return_id" value="{$ID}" />
129 <input type="hidden" name="return_action" value="{$return_action}" />
130 <input type="hidden" name="record" value="{$ID}" />
131 <input type="hidden" name="user_name" value="{$USER_NAME}" />
132 <input type='hidden' name='saveConfig' value='0' />
134 <td colspan='2'><span id='post_error' class="error">{$EXPIRATION_TYPE} </span></td>
138 {if $OLD_PASSWORD_FIELD == '' && $USERNAME_FIELD == '' }
139 <td width="30%"></td><td></td>
141 {$OLD_PASSWORD_FIELD}
145 <td scope="row">{$MOD.LBL_NEW_PASSWORD}:</td>
146 <td width="30%"><input type="password" size="26" tabindex="2" id="new_password" name="new_password" value="" onkeyup="password_confirmation();newrules('{$PWDSETTINGS.minpwdlength}','{$PWDSETTINGS.maxpwdlength}','{$REGEX}');" /></td>
149 <td scope="row">{$MOD.LBL_NEW_PASSWORD2}:</td>
150 <td width="30%"><input type="password" size="26" tabindex="2" id="confirm_pwd" name="confirm_pwd" value="" onkeyup="password_confirmation();" /> <div id="comfirm_pwd_match" class="error" style="display: none;">mis-match</div></td>