mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-04 23:54:08 +01:00
* [FIX] Upgrade issue: the variable $action was wrongly declared. Related #144
This commit is contained in:
@@ -55,7 +55,6 @@ if (!$sk || !SessionUtil::checkSessionKey($sk)) {
|
||||
Response::printJSON(_('CONSULTA INVÁLIDA'));
|
||||
}
|
||||
|
||||
|
||||
// Variables POST del formulario
|
||||
$actionId = Request::analyze('actionId', 0);
|
||||
$itemId = Request::analyze('itemId', 0);
|
||||
|
||||
@@ -554,6 +554,8 @@ class Account extends AccountBase implements AccountInterface
|
||||
{
|
||||
$query = 'SELECT account_id, account_name, account_pass, account_IV FROM accounts';
|
||||
|
||||
DB::setReturnArray();
|
||||
|
||||
return DB::getResults($query, __FUNCTION__);
|
||||
}
|
||||
|
||||
|
||||
@@ -383,7 +383,7 @@ class Init
|
||||
}
|
||||
|
||||
/**
|
||||
* Comprobar si el modo mantenimeinto está activado
|
||||
* Comprobar si el modo mantenimiento está activado
|
||||
* Esta función comprueba si el modo mantenimiento está activado.
|
||||
* Devuelve un error 503 y un reintento de 120s al cliente.
|
||||
*
|
||||
|
||||
@@ -300,9 +300,10 @@ class CustomFields extends CustomFieldsBase
|
||||
$queryRes = DB::getResults($query, __FUNCTION__);
|
||||
|
||||
if ($queryRes === false) {
|
||||
$Log->setLogLevel(Log::ERROR);
|
||||
$Log->addDescription(_('Error al actualizar datos encriptados'));
|
||||
return false;
|
||||
$Log->addDescription(_('Fin'));
|
||||
$Log->writeLog();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
$Log->addDescription(_('Actualizando datos encriptados'));
|
||||
|
||||
@@ -166,6 +166,7 @@ CREATE TABLE `log` (
|
||||
`log_ipAddress` varchar(45) NOT NULL,
|
||||
`log_action` varchar(50) NOT NULL,
|
||||
`log_description` text NOT NULL,
|
||||
`log_level`varchar (20) NOT NULL,
|
||||
PRIMARY KEY (`log_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
placeholder="<?php echo _('Código de Seguridad'); ?> "
|
||||
value="" autocomplete="off" autofocus required/>
|
||||
</p>
|
||||
<input type="hidden" name="a" value="<?php echo $actionId; ?>">
|
||||
<input type="hidden" name="a" value="<?php echo $action; ?>">
|
||||
<input type="hidden" name="t" value="<?php echo $time; ?>">
|
||||
<input type="hidden" name="upgrade" value="1">
|
||||
</fieldset>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
for="h"><?php echo _('Código de Seguridad'); ?></label>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="a" value="<?php echo $actionId; ?>">
|
||||
<input type="hidden" name="a" value="<?php echo $action; ?>">
|
||||
<input type="hidden" name="t" value="<?php echo $time; ?>">
|
||||
<input type="hidden" name="upgrade" value="1">
|
||||
</fieldset>
|
||||
|
||||
1271
js/functions.js
Normal file
1271
js/functions.js
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user