tnotify user if captcha challenge has failed - cosmo - front and backend for Markov-Chain Monte Carlo inversion of cosmogenic nuclide concentrations
(HTM) git clone git://src.adamsgaard.dk/cosmo
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit f4b59b8b4e63bb3a55c7abbf6d770d6ca90c00b6
(DIR) parent 5cad741ac04c553e1b9d3eec3c6e46bef7ee29cf
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Tue, 10 Nov 2015 13:54:55 +0100
notify user if captcha challenge has failed
Diffstat:
M uploadhistory.php | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/uploadhistory.php b/uploadhistory.php
t@@ -117,10 +117,14 @@ if ((isset($_POST['ne_conc']) && $_POST['ne_conc'] != '') &&
'Production rate, sample depth, and/or uncertainty for ' .
'<sup>21</sup>Ne');
}
+if (!$response->success) {
+ array_push($missing_fields,
+ 'reCAPTCHA challenge');
+}
// If something is missing, send error to user and make him/her go back
-if (count($missing_fields) > 0 || !$response->success) {
+if (count($missing_fields) > 0) {
//$error_msg = '<html><body>' .
//'<h2>Invalid input</h2>';
$error_msg = '