Skip to content

Commit

Permalink
remove unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlaverse committed Oct 1, 2024
1 parent e84d9a5 commit 95076c9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/bitwarden/embedded/vault_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,6 @@ func (v *baseVault) storeObject(ctx context.Context, obj models.Object) {
}

func decryptAccountSecrets(account Account, password string) (*AccountSecrets, error) {
if account.KdfConfig.KdfType != models.KdfTypePBKDF2_SHA256 && account.KdfConfig.KdfType != models.KdfTypeArgon2 {
return nil, fmt.Errorf("unsupported kdf type '%d'", account.KdfConfig.KdfType)
}

masterKey, err := keybuilder.BuildPreloginKey(password, account.Email, account.KdfConfig)
if err != nil {
return nil, fmt.Errorf("error building prelogin key: %w", err)
Expand Down

0 comments on commit 95076c9

Please sign in to comment.