Some validation has been provided to ensure that the supplied launch/complete times for a campaign are sane, in that they do not occur before the current time.
๐ญ Motivation and context
During development of some previous tickets, it was found that a user could supply aforementioned values before the current time. Gophish-tools would then schedule the campaigns as indicated, and Gophish would automatically close them if the complete date was prior to the current time. This is not desirable behavior from our operators.
๐งช Testing
Testing of the new changes was done by attempting to schedule a campaign with a date prior to the current time, such as 1/1/1901 12:00. An error message is displayed until valid input is provided.
๐ท Screenshots (if appropriate)
โ Checklist
[x] This PR has an informative and human-readable title.
[x] Changes are limited to a single goal - eschew scope creep!
[x] All future TODOs are captured in issues, which are referenced
in code comments.
[x] All relevant type-of-change labels have been added.
๐ฃ Description
Some validation has been provided to ensure that the supplied launch/complete times for a campaign are sane, in that they do not occur before the current time.
๐ญ Motivation and context
During development of some previous tickets, it was found that a user could supply aforementioned values before the current time. Gophish-tools would then schedule the campaigns as indicated, and Gophish would automatically close them if the complete date was prior to the current time. This is not desirable behavior from our operators.
๐งช Testing
Testing of the new changes was done by attempting to schedule a campaign with a date prior to the current time, such as 1/1/1901 12:00. An error message is displayed until valid input is provided.
๐ท Screenshots (if appropriate)
โ Checklist