* [ADD] New encryption schema by using Defuse/php-encryption library. WARNING: work in progress

This commit is contained in:
nuxsmin
2017-02-21 00:46:30 +01:00
parent 02a59eece2
commit 07c8a2b1f1
23 changed files with 574 additions and 440 deletions

View File

@@ -482,7 +482,7 @@ class ConfigActionController implements ItemControllerInterface
$confirmPassChange = Request::analyze('confirmPassChange', 0, false, 1);
$noAccountPassChange = Request::analyze('chkNoAccountChange', 0, false, 1);
if (!UserPass::getItem(Session::getUserData())->checkUserUpdateMPass()) {
if (!UserPass::checkUserUpdateMPass(Session::getUserData()->getUserId())) {
$this->JsonResponse->setDescription(__('Clave maestra actualizada', false));
$this->JsonResponse->addMessage(__('Reinicie la sesión para cambiarla', false));
$this->JsonResponse->setStatus(100);