Skip to content

Commit

Permalink
NewEncryptor set to scramsha256 if not hasher not matched
Browse files Browse the repository at this point in the history
  • Loading branch information
Schmaetz committed Jan 9, 2024
1 parent eddaeab commit c4d5614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func NewEncryptor(encryption string) *Encryptor {
}
hasher, ok := m[encryption]
if !ok {
hasher = e.PGUserPasswordMD5
hasher = e.PGUserPasswordScramSHA256
}
e.encrypt = hasher
return &e
Expand Down

0 comments on commit c4d5614

Please sign in to comment.