Skip to content

Commit

Permalink
UTCT-26: Add ReCaptcha site key.
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gilligan <[email protected]>

Secret key was moved to the app config file, not committed, per-environment.
  • Loading branch information
UTCGilligan committed Nov 11, 2023
1 parent 0fa89ac commit 094ac4d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions frontend/config.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?php
<?php
// CONFIG - These control the look and details on your site. Consult documentation for more details.

// GENERAL

// Page title for your site
define('title', 'Sleeky theme for YOURLS');
define('title', 'Sleeky theme for YOURLS');

// The short title of your site, used in the footer and in some sub pages
define('shortTitle', 'Sleeky');

// A description of your site, shown on the homepage.
define('description', 'A quick description on why your site is so fantastic, what it does and why people should definitely start using it. Oh, and how it’s free.');
define('description', 'A quick description on why your site is so fantastic, what it does and why people should definitely start using it. Oh, and how it’s free.');

// The favicon for your site
define('favicon', '/frontend/assets/img/favicon.ico');
Expand All @@ -20,13 +20,13 @@

// Enable reCAPTCHA V3
// It is highly recommended you use reCAPTCHA V3. It will stop spam. You can get a site and secret key from here: https://www.google.com/recaptcha/admin/create
define("enableRecaptcha", false);
define("enableRecaptcha", true);

// reCAPTCHA V3 Site Key
define("recaptchaV3SiteKey", 'YOUR_SITE_KEY_HERE');
define("recaptchaV3SiteKey", '6LdAwAspAAAAAGVqSRmR1ngmCOVUg2v5pLzIFVc_');

// reCAPTCHA V3 Secret Key
define("recaptchaV3SecretKey", 'YOUR_SECRET_KEY_HERE');
//define("recaptchaV3SecretKey", 'moved to app config for secrecy');

// Enables the custom URL field
// true or false
Expand All @@ -36,7 +36,7 @@
// Set a primary colour to be used. Default: #007bff
// Here are some other colours you could try:
// #f44336: red, #9c27b0: purple, #00bcd4: teal, #ff5722: orange
define('colour', '#007bff');
define('colour', '#205493');

// Optional
// Set a background image to be used.
Expand All @@ -50,10 +50,10 @@
// The array follows a title link structure:
// "TITLE" => "LINK",
$footerLinks = [
"About" => "https://sleeky.flynntes.com/",
"Contact" => "https://yourls.org/",
"Legal" => "https://yourls.org/",
"Admin" => "/admin"
"About" => "https://github.com/utctiny",
"Contact" => "https://www.utc.edu/web",
// "Legal" => "https://yourls.org/",
"Admin" => "/admin/"
];

?>

0 comments on commit 094ac4d

Please sign in to comment.