From 267aa882a16bfa329f5a200ac90d9b72b326474d Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 6 Jul 2018 22:52:27 +0000 Subject: [PATCH] --- Pages/Contact.cshtml.cs | 8 ++++---- notes | 10 ++++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 notes diff --git a/Pages/Contact.cshtml.cs b/Pages/Contact.cshtml.cs index dca804f..fe8ae1b 100644 --- a/Pages/Contact.cshtml.cs +++ b/Pages/Contact.cshtml.cs @@ -36,11 +36,11 @@ namespace contact.Pages { return Page(); } + //fuck those Russian spammers + if(Contact.Company.ToLowerInvariant()!="google") + SendMail(); - SendMail(); - - //todo go back to where they came from? - //or more likely just show a success page + //TODO: go to a successful submit page or the root of the ayanova site return RedirectToPage("Index"); } diff --git a/notes b/notes new file mode 100644 index 0000000..3d85815 --- /dev/null +++ b/notes @@ -0,0 +1,10 @@ +Todo: +Put up to server for testing from test static site copy before getting too crazy with it +Once it confirms to work then: + +Proper redirect after successful submit + +Add request forms + +$Profit +