mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-04 23:54:08 +01:00
Backups errors are shown. Return to active tab when save configurations tabs. Fix translations.
92 lines
3.3 KiB
PHP
92 lines
3.3 KiB
PHP
<?php
|
|
/**
|
|
* sysPass
|
|
*
|
|
* @author nuxsmin
|
|
* @link http://syspass.org
|
|
* @copyright 2012 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', '..');
|
|
include_once (APP_ROOT."/inc/init.php");
|
|
|
|
SP_Util::checkReferer('GET');
|
|
|
|
if ( ! SP_Init::isLoggedIn() ){
|
|
return;
|
|
}
|
|
|
|
$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_Users::checkUserAccess("acceditpass",$userId) || die ($strError);
|
|
|
|
$isDemoMode = SP_Config::getValue('demoenabled', 0);
|
|
?>
|
|
|
|
<div id="fancyContainer" align="center">
|
|
<h2 class="midround"><? echo _('Cambio de Clave'); ?></h2>
|
|
<form method="post" name="updUsrPass" id="frmUpdUsrPass">
|
|
<table class="fancydata">
|
|
<tr>
|
|
<td class="descField">
|
|
<? echo _('Clave'); ?>
|
|
</td>
|
|
<td class="valField">
|
|
<input type="password" id="usrpass" name="pass" title="<? echo _('Clave'); ?>" class="txtpass" OnFocus="$('#passLevel').show(); $('#resFancyAccion').hide();" OnKeyUp="checkPassLevel(this.value, 'fancyContainer')" />
|
|
<img src="imgs/genpass.png" title="<? echo _('Generar clave aleatoria'); ?>" class="inputImg" OnClick="$('#resFancyAccion').hide(); password(11,true,false,'fancyContainer');" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="descField">
|
|
<? echo _('Clave (repetir)'); ?></td>
|
|
<td class="valField">
|
|
<input type="password" id="usrpassv" name="passv" title="<? echo _('Clave (repetir)'); ?>" class="txtpassv" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<? if ( ! $isDemoMode ): ?>
|
|
<input type="hidden" name="action" value="3" />
|
|
<? elseif ( $_SESSION['uid'] != $userId && $isDemoMode ): ?>
|
|
<input type="hidden" name="id" value="<? echo $userId; ?>" />
|
|
<? endif; ?>
|
|
<input type="hidden" name="type" value="1" />
|
|
<input type="hidden" name="action" value="3" />
|
|
<input type="hidden" name="sk" value="<? echo SP_Common::getSessionKey(); ?>">
|
|
</form>
|
|
|
|
<div id="resCheck">
|
|
<span id="passLevel" title="<? echo _('Nivel de fortaleza de la clave'); ?>" ></span>
|
|
<BR><BR>
|
|
<span id="resFancyAccion"></span>
|
|
</div>
|
|
<div class="action-in-box">
|
|
<ul>
|
|
<li>
|
|
<img src="imgs/check.png" title="<? echo _('Guardar'); ?>" class="inputImg" OnClick="usersMgmt('frmUpdUsrPass')" alt="<? echo _('Guardar'); ?>"/>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">$("#usrpass").focus();</script>
|