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
91 lines
3.1 KiB
PHP
91 lines
3.1 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/>.
|
|
*
|
|
*/
|
|
|
|
define('APP_ROOT', '..');
|
|
require_once APP_ROOT.DIRECTORY_SEPARATOR.'inc'.DIRECTORY_SEPARATOR.'init.php';
|
|
|
|
SP_Util::checkReferer('GET');
|
|
|
|
if ( ! SP_Init::isLoggedIn() ){
|
|
SP_Util::logout();
|
|
}
|
|
|
|
$userId = SP_Common::parseParams('g', 'usrid', false);
|
|
|
|
if ( ! $userId ) {
|
|
return;
|
|
}
|
|
|
|
$strError = '<div id="fancyView" class="msgError">'._('No tiene permisos para realizar esta operación').'</div>';
|
|
|
|
SP_ACL::checkUserAccess("acceditpass",$userId) || die ($strError);
|
|
|
|
?>
|
|
|
|
<div id="fancyContainer" align="center">
|
|
<h2 class="midround"><?php echo _('Cambio de Clave'); ?></h2>
|
|
<form method="post" name="updUsrPass" id="frmUpdUsrPass">
|
|
<table class="fancydata">
|
|
<tr>
|
|
<td class="descField">
|
|
<?php echo _('Clave'); ?>
|
|
</td>
|
|
<td class="valField">
|
|
<input type="password" id="usrpass" name="pass" title="<?php echo _('Clave'); ?>" class="txtpass" OnFocus="$('#passLevel').show(); $('#resFancyAccion').hide();" OnKeyUp="checkPassLevel(this.value, 'fancyContainer')" />
|
|
<img id="passGen" src="imgs/genpass.png" title="<?php echo _('Generar clave aleatoria'); ?>" class="inputImg" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="descField">
|
|
<?php echo _('Clave (repetir)'); ?></td>
|
|
<td class="valField">
|
|
<input type="password" id="usrpassv" name="passv" title="<?php echo _('Clave (repetir)'); ?>" class="txtpassv" />
|
|
<span class="passLevel fullround" title="<?php echo _('Nivel de fortaleza de la clave'); ?>" ></span>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<input type="hidden" name="id" value="<?php echo $userId; ?>" />
|
|
<input type="hidden" name="type" value="1" />
|
|
<input type="hidden" name="action" value="3" />
|
|
<input type="hidden" name="sk" value="<?php echo SP_Common::getSessionKey(); ?>">
|
|
</form>
|
|
|
|
<div id="resCheck">
|
|
<span id="resFancyAccion"></span>
|
|
</div>
|
|
<div class="action-in-box">
|
|
<ul>
|
|
<li>
|
|
<img src="imgs/check.png" title="<?php echo _('Guardar'); ?>" class="inputImg" OnClick="appMgmtSave('frmUpdUsrPass')" alt="<?php echo _('Guardar'); ?>"/>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
$('#passGen').click(function(){
|
|
$('#resFancyAccion').hide();
|
|
password(11, true, false, 'fancyContainer');
|
|
});
|
|
</script>
|