michelp / pgsodium

Modern cryptography for PostgreSQL using libsodium.
Other
546 stars 32 forks source link

bug in pgsodium.valid_key view #41

Closed yhuelf closed 1 year ago

yhuelf commented 1 year ago

Hello,

First of all, thank you for releasing this very nice project!

I'd like to report a small error in the definition of the view pgsodium.valid_key:

ELSE key.expires < now()

should be replaced by

ELSE key.expires > now()

(unless I missed something)

Best regards,