Skip to content

Commit 9e91e1e

Browse files
authored
Merge pull request #1964 from Ser1ous/3.x
core (add) add clear password fields in user settings
2 parents 704685e + 55eac05 commit 9e91e1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/Legacy/Cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function emptyCache($modx = null)
120120
$modx->getService('ExceptionHandler')->messageQuit("Cache path not set.");
121121
}
122122
\Illuminate\Support\Facades\Cache::flush();
123-
123+
Models\UserSetting::query()->whereIn('setting_name', ['password', 'password_confirmation', 'clearPassword'])->delete();
124124
$files = glob(realpath($this->cachePath) . '/*.pageCache.php');
125125
$filesincache = count($files);
126126
$deletedfiles = array();

0 commit comments

Comments
 (0)