gophish/models
Jordan Wright 47f0049c30
Refactor servers (#1321)
* Refactoring servers to support custom workers and graceful shutdown.
* Refactoring workers to support custom mailers.
* Refactoring mailer to be an interface, with proper instances instead of a single global instance
* Cleaning up a few things. Locking maillogs for campaigns set to launch immediately to prevent a race condition.
* Cleaning up API middleware to be simpler
* Moving template parameters to separate struct
* Changed LoadConfig to return config object
* Cleaned up some error handling, removing uninitialized global error in models package
* Changed static file serving to use the unindexed package
2018-12-15 15:42:32 -06:00
..
attachment.go Added documentation for multiple endpoints. Fixes #54 2016-01-24 20:47:16 -06:00
campaign.go Refactor servers (#1321) 2018-12-15 15:42:32 -06:00
campaign_test.go Refactor servers (#1321) 2018-12-15 15:42:32 -06:00
doc.go Major refactoring - created auth, config, models, controllers, and middleware packages. Should help provide modularity and a clean architecture. 2014-01-09 00:42:05 -06:00
email_request.go Refactor servers (#1321) 2018-12-15 15:42:32 -06:00
email_request_test.go Refactor servers (#1321) 2018-12-15 15:42:32 -06:00
group.go Refactor servers (#1321) 2018-12-15 15:42:32 -06:00
group_test.go Implemented the ability to preview landing pages when sending a test email. 2018-06-08 21:20:52 -05:00
maillog.go Refactor servers (#1321) 2018-12-15 15:42:32 -06:00
maillog_test.go Refactor servers (#1321) 2018-12-15 15:42:32 -06:00
models.go Refactor servers (#1321) 2018-12-15 15:42:32 -06:00
models_test.go Refactor servers (#1321) 2018-12-15 15:42:32 -06:00
page.go Refactor servers (#1321) 2018-12-15 15:42:32 -06:00
page_test.go Support Re-enabling CapturePasswords for Landing Pages (#1271) 2018-11-11 12:34:26 -06:00
result.go Added transparency handler to return information JSON when a "+" is appended to a valid result ID (ref #1057) 2018-06-09 20:58:05 -05:00
result_test.go Minor cleanup for campaign results 2018-10-08 10:49:21 -05:00
smtp.go Refactor servers (#1321) 2018-12-15 15:42:32 -06:00
smtp_test.go Refactor servers (#1321) 2018-12-15 15:42:32 -06:00
template.go Refactor servers (#1321) 2018-12-15 15:42:32 -06:00
template_context.go Moved template validation into separate function, and added validation for pages 2018-09-09 11:33:51 -05:00
template_context_test.go Add {{.BaseURL}} template tag to provide the root URL for static files. Fixes #1182 2018-09-03 20:28:32 -05:00
user.go Refactor GetUserByUsername method not to suppress an error (#920) 2018-01-11 18:37:38 -06:00
user_test.go Separate user model test cases into a independent test file (#930) 2018-01-18 19:54:12 -06:00