Make sure that authenticated and authorized will not be saved into the file

This commit is contained in:
Matias Griese
2019-01-18 13:33:17 +02:00
parent 254fe990ba
commit fb9baaed8a

View File

@@ -224,9 +224,10 @@ class User extends Data
$this->undef('password');
}
$this->undef('username');
$file->save($this->items);
$this->set('username', $username);
$data = $this->items;
unset($data['username'], $data['authenticated'], $data['authorized']);
$file->save($data);
}
}