mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-04 07:34:09 +01:00
* [FIX] Related #493. Try to fix issue when setting cookies in Safari on iOS. Thanks to @basil-twisleton for the feedback.
This commit is contained in:
@@ -28,7 +28,6 @@ use Defuse\Crypto\Exception\CryptoException;
|
||||
use Defuse\Crypto\Key;
|
||||
use SP\Core\Init;
|
||||
use SP\Http\Request;
|
||||
use SP\Util\Checks;
|
||||
use SP\Util\Util;
|
||||
|
||||
/**
|
||||
@@ -123,7 +122,7 @@ class SecureKeyCookie extends Cookie
|
||||
|
||||
// $timeout = ini_get('session.gc_maxlifetime') ?: 3600;
|
||||
|
||||
if (setcookie(SecureKeyCookie::COOKIE_NAME, $this->sign(serialize($Vault), $key), 0, Init::$WEBURI, Request::getRequestHeaders('HTTP_HOST'))) {
|
||||
if (setcookie(SecureKeyCookie::COOKIE_NAME, $this->sign(serialize($Vault), $key), 0, Init::$WEBROOT)) {
|
||||
debugLog('Generating a new session key.');
|
||||
|
||||
return $this->SecuredKey;
|
||||
|
||||
@@ -139,6 +139,7 @@ class UserLdap extends User
|
||||
}
|
||||
|
||||
/**
|
||||
* Comprobar duplicados por login e email en minúsculas
|
||||
* @return bool
|
||||
* @throws \SP\Core\Exceptions\QueryException
|
||||
* @throws \SP\Core\Exceptions\ConstraintException
|
||||
|
||||
Reference in New Issue
Block a user