This PR ensures that user can't pass a negative or out-of-bounds TTL value. ~User can still enter a negative value through CyberPanel but this makes sure that the value is not saved.~
EDIT: added a commit so input field has min=0 and max=86400.
NOTE TO REVIEWERS:
There is room for improvement in cloudAPI - are there any major plans to overhaul cloudAPI? I would be willing to provide a PR with a proof of concept on how we can improve it somewhat without breaking the existing endpoints.
This PR ensures that user can't pass a negative or out-of-bounds TTL value. ~User can still enter a negative value through CyberPanel but this makes sure that the value is not saved.~
EDIT: added a commit so input field has
min=0
andmax=86400
.NOTE TO REVIEWERS: There is room for improvement in cloudAPI - are there any major plans to overhaul cloudAPI? I would be willing to provide a PR with a proof of concept on how we can improve it somewhat without breaking the existing endpoints.