mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-03 07:04:07 +01:00
* Fixed master password change not running when zeros are used on left or right. * Fixed some notice events on error log. * Closes #47. Default group&profile can be selected for new LDAP users * Closes #48. Database fields modified for STRICT sql mode * Installer now logs errors to web server error log
130 lines
4.9 KiB
PHP
130 lines
4.9 KiB
PHP
<?php
|
|
/**
|
|
* sysPass
|
|
*
|
|
* @author nuxsmin
|
|
* @link http://syspass.org
|
|
* @copyright 2012-2014 Rubén Domínguez nuxsmin@syspass.org
|
|
*
|
|
* This file is part of sysPass.
|
|
*
|
|
* sysPass is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* sysPass is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with sysPass. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
defined('APP_ROOT') || die(_('No es posible acceder directamente a este archivo'));
|
|
|
|
$action = $data['action'];
|
|
$activeTab = $data['activeTab'];
|
|
$onCloseAction = $data['onCloseAction'];
|
|
|
|
SP_ACL::checkUserAccess($action) || SP_Html::showCommonError('unavailable');
|
|
|
|
$lastUpdateMPass = SP_Config::getConfigValue("lastupdatempass");
|
|
?>
|
|
|
|
<form method="post" name="frmCrypt" id="frmCrypt">
|
|
<table class="data tblConfig round">
|
|
<?php if ($lastUpdateMPass > 0): ?>
|
|
<tr>
|
|
<td class="descField">
|
|
<?php echo _('Último cambio'); ?>
|
|
</td>
|
|
<td class="valField">
|
|
<?php echo date("r", $lastUpdateMPass); ?>
|
|
</td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
<tr>
|
|
<td class="descField">
|
|
<?php echo _('Clave Maestra actual'); ?>
|
|
</td>
|
|
<td class="valField">
|
|
<input type="password" name="curMasterPwd" maxlength="255">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="descField">
|
|
<?php echo _('Nueva Clave Maestra'); ?>
|
|
</td>
|
|
<td class="valField">
|
|
<input type="password" name="newMasterPwd" maxlength="255" OnKeyUp="checkPassLevel(this.value)">
|
|
<span class="passLevel fullround" title="<?php echo _('Nivel de fortaleza de la clave'); ?>"></span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="descField">
|
|
<?php echo _('Nueva Clave Maestra (repetir)'); ?>
|
|
</td>
|
|
<td class="valField">
|
|
<input type="password" name="newMasterPwdR" maxlength="255">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="descField">
|
|
<?php echo _('No modificar cuentas'); ?>
|
|
<?php SP_Common::printHelpButton("config", 16); ?>
|
|
</td>
|
|
<td class="valField">
|
|
<label for="chkNoAccountChange"><?php echo _('NO'); ?></label>
|
|
<input type="checkbox" class="checkbox" name="chkNoAccountChange" id="chkNoAccountChange"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="descField">
|
|
<?php echo _('Confirmar cambio'); ?>
|
|
</td>
|
|
<td class="valField">
|
|
<img src="imgs/warning.png" ALT="<?php echo _('Atención'); ?>" class="iconMini"/>
|
|
<?php echo _('Guarde la nueva clave en un lugar seguro.'); ?>
|
|
<br>
|
|
<img src="imgs/warning.png" ALT="<?php echo _('Atención'); ?>" class="iconMini"/>
|
|
<?php echo _('Se volverán a encriptar las claves de todas las cuentas.'); ?>
|
|
<br>
|
|
<img src="imgs/warning.png" ALT="<?php echo _('Atención'); ?>" class="iconMini"/>
|
|
<?php echo _('Los usuarios deberán de introducir la nueva clave maestra.'); ?>
|
|
<br>
|
|
<br>
|
|
<label for="confirmPassChange"><?php echo _('NO'); ?></label>
|
|
<input type="checkbox" class="checkbox" name="confirmPassChange" id="confirmPassChange"/>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<input type="hidden" name="activeTab" value="<?php echo $activeTab ?>"/>
|
|
<input type="hidden" name="onCloseAction" value="<?php echo $onCloseAction ?>"/>
|
|
<input type="hidden" name="action" value="crypt"/>
|
|
<input type="hidden" name="isAjax" value="1"/>
|
|
<input type="hidden" name="sk" value="<?php echo SP_Common::getSessionKey(true); ?>">
|
|
</form>
|
|
<div class="action">
|
|
<ul>
|
|
<li>
|
|
<img src="imgs/check.png" title="<?php echo _('Guardar'); ?>" class="inputImg"
|
|
OnClick="configMgmt('savempwd');"/>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<script>
|
|
$('#frmCrypt .checkbox').button();
|
|
$('#frmCrypt .ui-button').click(function () {
|
|
// El cambio de clase se produce durante el evento de click
|
|
// Si tiene la clase significa que el estado anterior era ON y ahora es OFF
|
|
if ($(this).hasClass('ui-state-active')) {
|
|
$(this).children().html('<?php echo _('NO'); ?>');
|
|
} else {
|
|
$(this).children().html('<?php echo _('SI'); ?>');
|
|
}
|
|
});
|
|
</script>
|