-
-
Notifications
You must be signed in to change notification settings - Fork 527
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate modUserProfile->sessionid and do not set value (#16697)
### What does it do? Marks the modUserProfile->sessionid field as deprecated and does not set the value when a user session is initiated or session id changes. ### Why is it needed? Security enhancement. ### How to test Make sure data is not added to the field for new users or updated for existing users when sessions are utilized. ### Related issue(s)/PR(s) n/a
- Loading branch information
Showing
5 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
/** | ||
* Removes data from modUserProfile.sessionid field | ||
* | ||
* @var modX $modx | ||
* @package setup | ||
*/ | ||
|
||
$modx->updateCollection(\MODX\Revolution\modUserProfile::class, ['sessionid' => '']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
/** | ||
* Specific upgrades for Revolution 3.1.1-pl | ||
* | ||
* @var modX $modx | ||
* @package setup | ||
* @subpackage upgrades | ||
*/ | ||
|
||
/* run upgrades common to all db platforms */ | ||
include dirname(__DIR__) . '/common/3.1.1-clear-sessionids.php'; |