pfsense_fauxapi icon indicating copy to clipboard operation
pfsense_fauxapi copied to clipboard

Allow UNIX timestamp auth

Open GaraQuor opened this issue 4 years ago • 1 comments

Hello,

It would be great if we could pass a raw UNIX timestamp in the auth header. A simple solution is to pass an '@' at the beginning of the value to strtotime treat the input as a UNIX timestamp (as described here https://www.php.net/manual/en/datetime.formats.compound.php)

The only fix is to add '@' char in the sanitizer allowed array

GaraQuor avatar Aug 06 '20 10:08 GaraQuor

Cool, added to the "enhancements" list

ndejong avatar Aug 14 '20 02:08 ndejong