Skip to content

Commit

Permalink
Disable recaptcha for testing purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto Diaz Dorado committed May 5, 2024
1 parent b60c9ed commit be31ef2
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions lib/Zureg/Hackathon/MuniHac2024.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import qualified Data.Text as T
import qualified Text.Blaze.Html5 as H
import System.Environment (getEnv)
import qualified Zureg.Captcha.ReCaptcha as ReCaptcha
import qualified Zureg.Captcha.NoCaptcha as NoCaptcha
import qualified Zureg.Database as Database
import Zureg.Hackathon.Interface (Hackathon)
import qualified Zureg.Hackathon.Interface as Hackathon
Expand All @@ -21,11 +22,13 @@ newHackathon = do
scannerSecret <- T.pack <$> getEnv "ZUREG_SCANNER_SECRET"
email <- T.pack <$> getEnv "ZUREG_EMAIL"

reCaptchaSecret <- T.pack <$> getEnv "ZUREG_RECAPTCHA_SECRET"
captcha <- ReCaptcha.new ReCaptcha.Config
{ ReCaptcha.cSiteKey = "6Lcmk7wZAAAAAKMmP6sKNvd5gVI8aGaMrWjE3JkZ"
, ReCaptcha.cSecretKey = reCaptchaSecret
}
-- reCaptchaSecret <- T.pack <$> getEnv "ZUREG_RECAPTCHA_SECRET"
-- captcha <- ReCaptcha.new ReCaptcha.Config
-- { ReCaptcha.cSiteKey = "6Lcmk7wZAAAAAKMmP6sKNvd5gVI8aGaMrWjE3JkZ"
-- , ReCaptcha.cSecretKey = reCaptchaSecret
-- }

captcha <- NoCaptcha.new

return Hackathon.Hackathon
{ Hackathon.name = "MuniHac 2024"
Expand Down

0 comments on commit be31ef2

Please sign in to comment.