Skip to content
This repository was archived by the owner on Mar 8, 2021. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/snippets/weblogin/weblogin.processor.inc.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@
}
}

if(isset($modx->config['use_captcha']) && $modx->config['use_captcha']==1) {
if(isset($modx->config['use_captcha']) && $modx->config['use_captcha']==1 && isset($_POST['cmdwebsignup'])) {
if($_SESSION['veriword']!=$captcha_code) {
$output = webLoginAlert("The security code you entered didn't validate! Please try to login again!");
$newloginerror = 1;
Expand Down
5 changes: 5 additions & 0 deletions install/assets/snippets/websignup.tpl
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,16 @@
# Params:
#
# &tpl - (Optional) Chunk name or document id to use as a template
# If custom template AND captcha on AND using WebSignup and
# WebLogin on the same page make sure you have a field named
# cmdwebsignup. In the default template it is the submit button
# One can use a hidden field.
# &groups - Web users groups to be assigned to users
# &useCaptcha - (Optional) Determine to use (1) or not to use (0) captcha
# on signup form - if not defined, will default to system
# setting. GD is required for this feature. If GD is not
# available, useCaptcha will automatically be set to false;
#
#
# Note: Templats design:
# section 1: signup template
Expand Down