Skip to content

Commit

Permalink
feat: EBSCO passwords are stored as hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Chloe070196 committed Oct 18, 2024
1 parent 6c3b133 commit f4068e6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions code/web/sys/DBMaintenance/version_updates/24.11.00.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ function getUpdates24_11_00(): array {
//alexander - PTFS-Europe

//chloe - PTFS-Europe
'ebsco_passwords_are_stored_as_hash' => [
'title' => 'EBSCO Passwords Are Stored As Hash',
'description' => 'allow for longer strings so passwords can be stored as hashed values',
'continueOnError' => false,
'sql' => [
"ALTER TABLE ebsco_eds_settings MODIFY COLUMN edsApiPassword VARCHAR(255)",
"ALTER TABLE ebscohost_settings MODIFY COLUMN profilePwd VARCHAR(255)"
]
] // ebsco_passwords_are_stored_as_hash

//pedro - PTFS-Europe

Expand Down
4 changes: 4 additions & 0 deletions code/web/sys/Ebsco/EBSCOhostSetting.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ class EBSCOhostSetting extends DataObject {

private $_searchSettings;

function getEncryptedFieldNames(): array {
return ['profilePwd'];
}

static function getObjectStructure($context = ''): array {
$ebscoHostSearchSettingStructure = EBSCOhostSearchSetting::getObjectStructure($context);

Expand Down
4 changes: 4 additions & 0 deletions code/web/sys/Ebsco/EDSSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ class EDSSettings extends DataObject {
public $edsSearchProfile;
public $fullTextLimiter;

function getEncryptedFieldNames(): array {
return ['edsApiPassword'];
}

public static function getObjectStructure($context = ''): array {
return [
'id' => [
Expand Down

0 comments on commit f4068e6

Please sign in to comment.