mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-03 15:14:08 +01:00
* [FIX] Fixes #185.Thanks to @bitking
* [FIX] Fixes #186. Thanks to @wagnst * [FIX] Related #189. Login not done for the fisrt time randomly.
This commit is contained in:
@@ -483,8 +483,9 @@ class Init
|
||||
{
|
||||
self::wrLogoutInfo();
|
||||
|
||||
session_unset();
|
||||
//session_unset();
|
||||
session_destroy();
|
||||
session_start();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -580,7 +581,7 @@ class Init
|
||||
}
|
||||
|
||||
/**
|
||||
* Inicialiar la sesión de usuario
|
||||
* Inicializar la sesión de usuario
|
||||
*/
|
||||
private static function initSession()
|
||||
{
|
||||
@@ -592,11 +593,8 @@ class Init
|
||||
setcookie(session_name(), '', time() - 42000, '/');
|
||||
}
|
||||
|
||||
self::wrLogoutInfo();
|
||||
self::logout();
|
||||
|
||||
session_unset();
|
||||
session_destroy();
|
||||
session_start();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
2
inc/themes/classic/css/styles.min.css
vendored
2
inc/themes/classic/css/styles.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -6,12 +6,12 @@
|
||||
title="<?php echo _('Cambiar clave de usuario'); ?>"
|
||||
data-itemid="<?php echo $userId; ?>"
|
||||
Onclick="sysPassUtil.Common.usrUpdPass(this,<?php echo \SP\Controller\ActionsInterface::ACTION_USR_USERS_EDITPASS; ?>, '<?php echo $sk; ?>')" />
|
||||
<img src="imgs/preferences.png" class="iconMini" title="<?php echo _('Preferencias'); ?>"
|
||||
data-itemid="<?php echo $userId; ?>"
|
||||
OnClick="sysPassUtil.Common.doAction(<?php echo \SP\Controller\ActionsInterface::ACTION_USR_PREFERENCES; ?>)" />
|
||||
<?php else: ?>
|
||||
<?php echo $userName, ' (', $userGroupName, ') ', $adminApp; ?>
|
||||
<?php endif; ?>
|
||||
<img src="imgs/preferences.png" class="iconMini" title="<?php echo _('Preferencias'); ?>"
|
||||
data-itemid="<?php echo $userId; ?>"
|
||||
OnClick="sysPassUtil.Common.doAction(<?php echo \SP\Controller\ActionsInterface::ACTION_USR_PREFERENCES; ?>)" />
|
||||
<img src="imgs/exit.png" title="<?php echo _('Salir'); ?>" OnClick="sysPassUtil.Common.doLogout();"/>
|
||||
</div>
|
||||
</div>
|
||||
2
inc/themes/material-blue/css/styles.min.css
vendored
2
inc/themes/material-blue/css/styles.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -108,7 +108,7 @@
|
||||
|
||||
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
|
||||
<input id="dbhost" name="dbhost" type="text" required class="mdl-textfield__input fg-blue100"
|
||||
value="<?php echo $dbhost; ?>" autocomplete="off" autofocus pattern="[0-9a-zA-Z$_-]+">
|
||||
value="<?php echo $dbhost; ?>" autocomplete="off" autofocus pattern="[0-9a-zA-Z_-\.]+">
|
||||
<label class="mdl-textfield__label"
|
||||
for="dbhost"><?php echo _('Servidor BBDD para sysPass'); ?></label>
|
||||
</div>
|
||||
|
||||
@@ -242,15 +242,15 @@ class MainC extends Controller implements ActionsInterface
|
||||
));
|
||||
|
||||
// Comprobar y parsear los parámetros GET para pasarlos como POST en los inputs
|
||||
$this->view->assign('getParams');
|
||||
$getParams = '';
|
||||
|
||||
if (count($_GET) > 0) {
|
||||
foreach ($_GET as $param => $value) {
|
||||
$getParams['g_' . \SP\Html::sanitize($param)] = \SP\Html::sanitize($value);
|
||||
}
|
||||
|
||||
$this->view->assign('getParams', $getParams);
|
||||
}
|
||||
|
||||
$this->view->assign('getParams', $getParams);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user