Skip to content

Commit

Permalink
Models/External_Account_Model: unset v and s if encryption is SRP6
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightprince committed Oct 29, 2024
1 parent ca0cfc6 commit d31d587
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion application/models/External_account_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,18 @@ public function initialize($where = false)
unset($columns[column('account', 'verifier')]);
unset($columns[column('account', 'salt')]);
}
} elseif ($encryption == 'SRP6' || $encryption == 'SRP') {
} elseif ($encryption == 'SRP') {
if (column('account', 'sha_pass_hash')){
unset($columns[column('account', 'sha_pass_hash')]);
}
} elseif ($encryption == 'SRP6') {
if (column('account', 'sha_pass_hash')){
unset($columns[column('account', 'sha_pass_hash')]);
}
if (column('account', 'v') && column('account', 's')){
unset($columns[column('account', 'v')]);
unset($columns[column('account', 's')]);
}
}

if ($this->config->item('totp_secret')) {
Expand Down

0 comments on commit d31d587

Please sign in to comment.