chg: [internal] Do not fetch password from db

pull/7754/head
Jakub Onderka 2021-09-15 09:55:46 +02:00
parent 81eddfdb76
commit 44fbf45ce5
1 changed files with 2 additions and 0 deletions

View File

@ -911,6 +911,8 @@ class User extends AppModel
// Do not include keys, because they are big and usually not necessary
unset($fields['gpgkey']);
unset($fields['certif_public']);
// Do not fetch password from db, it is automatically fetched by BaseAuthenticate::_findUser
unset($fields['password']);
$fields = array_keys($fields);
foreach ($this->belongsTo as $relatedModel => $foo) {