Skip to content

Commit a5181a0

Browse files
committed
v1.10 release
1 parent 4120bb9 commit a5181a0

10 files changed

Lines changed: 211 additions & 218 deletions

en-GB.mod_registerlogin.ini

Lines changed: 4 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,105 +1,48 @@
1-
COM_USERS_PROFILE_USERNAME_LABEL="Username"
2-
COM_USERS_REGISTER_EMAIL1_DESC="Enter your email address."
3-
COM_USERS_REGISTER_EMAIL1_LABEL="Email Address"
4-
COM_USERS_REGISTER_NAME_DESC="Enter your full name."
1+
MOD_REGISTERLOGIN="Login Register"
52
COM_USERS_REGISTER_NAME_LABEL="Name"
6-
COM_USERS_REGISTER_PASSWORD1_LABEL="Password"
3+
COM_USERS_REGISTER_EMAIL1_DESC="Enter your email address."
74
COM_USERS_REGISTER_PASSWORD2_DESC="Confirm your password."
8-
COM_USERS_REGISTER_PASSWORD2_LABEL="Confirm Password"
9-
COM_USERS_REGISTER_USERNAME_DESC="Enter your desired username."
105
COM_USERS_REGISTER_EMAIL2_DESC="Confirm your email address."
116
COM_MODULES_FIELD_MODULECLASS_SFX_LABEL="Module Class Suffix"
127
COM_MODULES_FIELD_MODULECLASS_SFX_DESC="A suffix to be applied to the CSS class of the module. This allows for individual module styling."
138
COM_MODULES_FIELD_CACHING_DESC="Use the global cache setting to cache the content of this module or disable caching for this module."
149
MOD_REGISTERLOGIN_USERACTIVATION_DESC="If set to Self the user will be registered immediately. If set to Admin the user will be emailed a link to verify their email address and then all users set to receive system emails and who have the permission to create users will be notified to activate the user's account."
15-
MOD_REGISTERLOGIN="Login Register"
1610
MOD_REGISTERLOGIN_USERACTIVATION_LABEL="New User Account Activation"
1711
MOD_REGISTERLOGIN_USERACTIVATION_OPTION_SELFACTIVATION="Self"
1812
MOD_REGISTERLOGIN_USERACTIVATION_OPTION_ADMINACTIVATION="Admin"
1913
MOD_REGISTERLOGIN_DESC_DEFAULTVIEW="Select the default view for the module"
2014
MOD_REGISTERLOGIN_LABEL_DEFAULTVIEW="Default View"
21-
MOD_REGISTERLOGIN_LABEL_ACTIVE_USER_AUTOMATICALLY="Activate user Automatically"
2215
MOD_REGISTERLOGIN_LABEL_AJAX_REGISTRATION="Select Yes If You Would Like to Notifiy the Site Administrator About New Registrations"
23-
MOD_REGISTERLOGIN_LABEL_AJAX_REGISTRATION_DESCRIPTION="Ajax Registration"
2416
MOD_REGISTERLOGIN_LABEL_NOTIFICATION_EMAIL_TO_ADMINISTRATOR="Notifiy Admin"
2517
MOD_REGISTERLOGIN_LABEL_SITE_KEY="Site Key"
2618
MOD_REGISTERLOGIN_LABEL_SECRATE_KEY="Secret Key"
27-
MOD_REGISTERLOGIN_LABEL_ENABLECAPTCHAONLOGIN="Enable Captcha On login"
2819
MOD_REGISTERLOGIN_LABEL_ENABLE_TERMS_OF_USE_ON_REGISTER="Enable terms of use on Registration"
2920
MOD_REGISTERLOGIN_LABEL_ENABLE_CHECKBOX_REGISTER_DESC="Enable to add the checkbox to terms of use."
3021
MOD_REGISTERLOGIN_LABEL_ENABLECAPTCHAONREGISTRE="Enable Captcha on Registration"
3122
MOD_REGISTERLOGIN_LABEL_ENABLECAPTCHAONREGISTRE_DESCRIPTION="Enable Captcha on Registration"
32-
MOD_REGISTERLOGIN_NO="No"
33-
MOD_REGISTERLOGIN_YES="Yes"
34-
MOD_REGISTERLOGIN_PARAM_RECAPTCHATHEME_RED="Red"
35-
MOD_REGISTERLOGIN_PARAM_RECAPTCHATHEME_WHITE="White"
36-
MOD_REGISTERLOGIN_PARAM_RECAPTCHATHEME_BLACKGLASS="Blackglass"
37-
MOD_REGISTERLOGIN_PARAM_RECAPTCHATHEME_CLEAN="Clean"
38-
MOD_REGISTERLOGIN_DESC_RECAPTCHATHEME="Select ReCaptcha theme"
39-
COM_MODULES_RECAPTCHA_FIELDSET_LABEL="Recaptcha settings"
4023
MOD_REGISTERLOGIN_LOGINLEBEL="Login"
4124
MOD_REGISTERLOGIN_REGISTERLEBEL="Register"
42-
MOD_REGISTERLOGIN_PARAM_ENABLECAPTCHA_01="No"
43-
MOD_REGISTERLOGIN_PARAM_ENABLECAPTCHA_="Yes"
44-
MOD_REGISTERLOGIN_DESC_ENABLECAPTCHA=""
45-
MOD_REGISTERLOGIN_LABEL_PUBLICKEY=" Public Key"
46-
MOD_REGISTERLOGIN_DESC_PUBLICKEY="ReCaptcha Public Key. Visit www.google.com/recaptcha"
47-
MOD_REGISTERLOGIN_LABEL_PRIVATEKEY="Private Key"
48-
MOD_REGISTERLOGIN_DESC_PRIVATEKEY="ReCaptcha Public Key. Visit www.google.com/recaptcha"
49-
MOD_REGISTERLOGIN_LABEL_RECAPTCHATHEME="ReCaptcha Theme"
50-
MOD_REGISTERLOGIN_LABEL_CAPTCHA="Captcha"
5125
MOD_REGISTERLOGIN_DISPLAY_LABEL="Display label"
5226
MOD_REGISTERLOGIN_DISPLAY_LABEL_DESC="An option to specify label to the input fields."
53-
MOD_INVALID_KEY="Invalid Private Key"
54-
MOD_INVALID_CAPTCHA="Invalid Captcha"
5527
MOD_REGISTERLOGIN_PARAM_DEFAULTVIEW_LOGIN="Login"
5628
MOD_REGISTERLOGIN_PARAM_DEFAULTVIEW_REGISTER="Register"
57-
MOD_REGISTERLOGIN_NAME="Name"
58-
MOD_REGISTERLOGIN_USERNAME="Username"
59-
MOD_REGISTERLOGIN_PASSWORD="Password"
60-
MOD_REGISTERLOGIN_CONFIRM_PASSWORD="Confirm Password"
61-
MOD_REGISTERLOGIN_EMAIL="Email Address"
62-
MOD_REGISTERLOGIN_CONFIRM_EMAIL="Confirm email Address"
63-
MOD_REGISTERLOGIN_REQUIRED_FIELD=" Required field"
6429
MOD_REGISTERLOGIN_AJAX_REGISTRATION="Ajax Registration"
6530
MOD_REGISTERLOGIN_AJAX_REGISTRATION_DESCRIPTION="Ajax Registration helps you to register without reloading the entire page."
66-
MOD_REGISTERLOGIN_REMEMBER_ME="Remember Me"
6731
MOD_REGISTERLOGIN_FORGOT_YOUR_USERNAME="Forgot your username?"
6832
MOD_REGISTERLOGIN_FORGOT_YOUR_PASSWORD="Forgot your password?"
69-
MOD_REGISTERLOGIN_VALUE_USERNAME="Username"
7033
MOD_REGISTERLOGIN_HINAME="Hi %s,"
71-
MOD_REGISTERLOGIN_EMAIL_ACCOUNT_DETAILS="Account Details for %s at %s"
72-
MOD_REGISTERLOGIN_EMAIL_REGISTERED_WITH_ADMIN_ACTIVATION_BODY="Hello %s,\n\nThank you for registering at %s. Your account is created and must be verified before you can use it.\nTo verify the account click on the following link or copy-paste it in your browser:\n %s \n\nAfter verification an administrator will be notified to activate your account. You'll receive a confirmation when it's done.\nOnce that account has been activated you may login to %s using the following username and password:\n\nUsername: %s\nPassword: %s"
73-
74-
MOD_REGISTERLOGIN_EMAIL_REGISTERED_WITH_ADMIN_ACTIVATION_BODY_NOPW="Hello %s,\n\nThank you for registering at %s. Your account is created and must be verified before you can use it.\nTo verify the account click on the following link or copy-paste it in your browser:\n %s \n\nAfter verification an administrator will be notified to activate your account. You'll receive a confirmation when it's done.\nOnce that account has been activated you may login to %s using the following username and the password you entered during registration:\n\nUsername: %s"
75-
MOD_REGISTERLOGIN_EMAIL_REGISTERED_WITH_ACTIVATION_BODY="Hello %s,\n\nThank you for registering at %s. Your account is created and must be activated before you can use it.\nTo activate the account click on the following link or copy-paste it in your browser:\n%s \n\nAfter activation you may login to %s using the following username and password:\n\nUsername: %s\nPassword: %s"
76-
MOD_REGISTERLOGIN_EMAIL_REGISTERED_WITH_ACTIVATION_BODY_NOPW="Hello %s,\n\nThank you for registering at %s. Your account is created and must be activated before you can use it.\nTo activate the account click on the following link or copy-paste it in your browser:\n%s \n\nAfter activation you may login to %s using the following username and the password you entered during registration:\n\nUsername: %s"
77-
MOD_REGISTERLOGIN_EMAIL_REGISTERED_BODY="Hello %s,\n\nThank you for registering at %s.\n\nYou may now log in to %s using the following username and password:\n\nUsername: %s\nPassword: %s"
78-
79-
MOD_REGISTERLOGIN_EMAIL_REGISTERED_BODY_NOPW="Hello %s,\n\nThank you for registering at %s.\n\nYou may now log in to %s using the username and password you registered with."
80-
MOD_REGISTERLOGIN_EMAIL_REGISTERED_NOTIFICATION_TO_ADMIN_BODY="Hello administrator, \n\nA new user '%s', username '%s', has registered at %s."
81-
MOD_REGISTERLOGIN_DATABASE_ERROR="Error getting the user from the database: %s"
8234
MOD_REGISTERLOGIN_REGISTRATION_ACTIVATION_NOTIFY_SEND_MAIL_FAILED="An error was encountered while sending activation notification email"
8335
MOD_REGISTERLOGIN_WRONG_LOGIN_MESSAGE="Username and password do not match or you do not have an account yet"
8436
MOD_REGISTERLOGIN_CAPTCHA_ERROR="Captcha code is incorrect. enter a valid captcha code."
85-
MOD_REGISTERLOGIN_REGISTRATION_SAVE_SUCCESS="Thank you for registering. You may now log in using the username and password you registered with."
86-
MOD_REGISTERLOGIN_REGISTRATION_ACTIVATE_SUCCESS="Your Account has been successfully activated. You can now log in using the username and password you chose during the registration."
87-
MOD_REGISTERLOGIN_REGISTRATION_ADMINACTIVATE_SUCCESS="The user's account has been successfully activated and the user has been notified about it."
88-
MOD_REGISTERLOGIN_REGISTRATION_VERIFY_SUCCESS="Your email address has been verified. Once an administrator approves your account you will be notified by email and you can login to the site."
89-
MOD_REGISTERLOGIN_USERNAME_ALREADY_EXIST="This Username is already registered."
9037
MOD_REGISTERLOGIN_LOGIN_SUCCESS="You have been logged in successfully."
91-
MOD_REGISTERLOGIN_REGISTRATION_COMPLETE_ACTIVATE="Your account has been created and an activation link has been sent to the email address you entered. Note that you must activate the account by clicking on the activation link when you get the email before you can login."
92-
MOD_REGISTERLOGIN_REGISTRATION_COMPLETE_VERIFY="Your account has been created and a verification link has been sent to the email address you entered. Note that you must verify the account by clicking on the verification link when you get the email and then an administrator will activate your account before you can login."
9338
MOD_REGISTERLOGIN_FIELD_LOGIN_REDIRECTURL_LABEL="Login Redirection Page"
9439
MOD_REGISTERLOGIN_FIELD_LOGIN_REDIRECTURL_DESC="Select the page the user will be redirected to after a successful login. Select from all the pages listed in the dropdown menu. Choosing "Default" will return to the same page."
9540
MOD_REGISTERLOGIN_FIELD_LOGOUT_REDIRECTURL_LABEL="Logout Redirection Page"
9641
MOD_REGISTERLOGIN_FIELD_LOGOUT_REDIRECTURL_DESC="Select the page the user will be redirected to after a successful logout. Select from all the pages listed in the dropdown menu. Choosing "Default" will return to the same page"
9742
MOD_REGISTERLOGIN_TERMFOUSE_ENABLE="Enable"
9843
MOD_REGISTERLOGIN_TERMFOUSE_DISABLE="Disable"
9944
MOD_REGISTERLOGIN_LABEL_TERMFOUSE="Terms Of Use"
100-
MOD_REGISTERLOGIN_DESC_TERMFOUSE="Select if you want to enable the Terms of Use Check Box to display before the register button."
10145
MOD_REGISTERLOGIN_LABEL_CHECKBOX="Check box"
102-
MOD_REGISTERLOGIN_DESC_CHECKBOX="Select whether you want the Terms of Use Check Box to be pre-checked or not."
10346
MOD_REGISTERLOGIN_CHECKBOX="Checked"
10447
MOD_REGISTERLOGIN_UNCHECKBOX="Not Checked"
10548
MOD_REGISTERLOGIN_LABEL_ARTICLEID="Article ID"
@@ -113,4 +56,5 @@ MOD_REGISTERLOGIN_OPENINMODEL="Open in Modal/Popup"
11356
MOD_REGISTERLOGIN_CHOOSELAYOUT="Select a Layout"
11457
MOD_REGISTERLOGIN_CHOOSELAYOUT_DES="Select a Layout"
11558
MOD_REGISTERLOGIN_CHOOSELAYOUT_VALUE="Radio Buttons"
116-
MOD_REGISTERLOGIN_CHOOSELAYOUT_VALUE1="Tabs"
59+
MOD_REGISTERLOGIN_CHOOSELAYOUT_VALUE1="Tabs"
60+
MOD_REGISTERLOGIN_NOT_ALLWED="User Registration Not allowed at this moment."

helper.php

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
<?php
22
/**
33
* @package Register Login Joomla Module
4-
* @version 1.9
5-
* @author www.joomdev.com
6-
* @copyright Copyright (C) 2009 - 2018 www.joomdev.com. All rights reserved.
7-
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
4+
* @author JoomDev
5+
* @copyright Copyright (C) 2018 Joomdev, Inc. All rights reserved.
6+
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
87
*/
9-
108
defined('_JEXEC') or die;
119
class modRegisterLoginHelper
1210
{
@@ -407,7 +405,8 @@ public static function getUserRegister($params = array()){
407405

408406
// Check for an error.
409407
if ($return !== true){
410-
JError::raiseError( 4711, JText::_('MOD_REGISTERLOGIN_REGISTRATION_ACTIVATION_NOTIFY_SEND_MAIL_FAILED') );
408+
echo $return;
409+
//JError::raiseError( 4711, JText::_('MOD_REGISTERLOGIN_REGISTRATION_ACTIVATION_NOTIFY_SEND_MAIL_FAILED') );
411410
return false;
412411
}
413412
}
@@ -419,17 +418,15 @@ public static function getReturnUrl($params, $type)
419418
{
420419
$app = JFactory::getApplication();
421420
$item = $app->getMenu()->getItem($params->get($type));
421+
422422
// Stay on the same page
423423
$url = JUri::getInstance()->toString();
424+
424425
if ($item)
425426
{
426-
$lang = '';
427-
if ($item->language !== '*' && JLanguageMultilang::isEnabled())
428-
{
429-
$lang = '&lang=' . $item->language;
430-
}
431-
$url = JURI::root().'index.php?Itemid=' . $item->id . $lang;
427+
$url = JRoute::_('index.php?Itemid=' . $item->id);
432428
}
429+
433430
return base64_encode($url);
434431
}
435432
public static function getType()

mod_registerlogin.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<?php
22
/**
33
* @package Register Login Joomla Module
4-
* @version 1.9
5-
* @author www.joomdev.com
6-
* @copyright Copyright (C) 2009 - 2018 www.joomdev.com. All rights reserved.
7-
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
4+
* @author JoomDev
5+
* @copyright Copyright (C) 2018 Joomdev, Inc. All rights reserved.
6+
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
87
*/
98

109
defined('_JEXEC') or die;

mod_registerlogin.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<extension type="module" version="3.0" client="site" method="upgrade">
33
<name>Register Login</name>
44
<author>JoomDev</author>
5-
<creationDate>June, 2018</creationDate>
5+
<creationDate>Oct, 2018</creationDate>
66
<copyright>All rights reserved.</copyright>
77
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
8-
<authorEmail>support@joomdev.com</authorEmail>
9-
<authorUrl>www.joomDev.com</authorUrl>
10-
<version>1.9</version>
8+
<authorEmail>info@joomdev.com</authorEmail>
9+
<authorUrl>www.joomdev.com</authorUrl>
10+
<version>1.10</version>
1111
<description>
1212
<![CDATA[<div style="font-size:16px; font-weight:bold; color:black; text-align:left; margin:0px; padding:0px 5px;"><h3>Register Login By JoomDev</h3></div>
1313
<div style="font-weight:normal; border-bottom:1px solid #f0dc7e;display:block; padding-bottom:5px; margin:5px; background-color:#fff;"></div>

tmpl/assets/jquery.registerloginplugin.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
/**
22
* @package Register Login Joomla Module
3-
* @version 1.9
4-
* @author www.joomdev.com
5-
* @copyright Copyright (C) 2009 - 2018 www.joomdev.com. All rights reserved.
6-
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
3+
* @author JoomDev
4+
* @copyright Copyright (C) 2018 Joomdev, Inc. All rights reserved.
5+
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
76
*/
87
(function ($) {
98
$.fn.jdRegisterLogin = function () {

tmpl/assets/registerlogin.css

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
/**
22
* @package Register Login Joomla Module
3-
* @version 1.9
4-
* @author www.joomdev.com
5-
* @copyright Copyright (C) 2009 - 2018 www.joomdev.com. All rights reserved.
6-
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
3+
* @author JoomDev
4+
* @copyright Copyright (C) 2018 Joomdev, Inc. All rights reserved.
5+
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
76
*/
87

98
.jd-register-login-wrapper * {
@@ -52,11 +51,13 @@
5251
margin: 0;
5352
padding: 0;
5453
list-style: none;
54+
display: flex;
5555
}
5656

5757
.jd-register-login-wrapper .jd-register-login-tab li {
58-
margin-right: 5px;
5958
display: inline-block;
59+
width: 50%;
60+
text-align: center;
6061
}
6162

6263
.jd-register-login-wrapper .jd-register-login-tab li span {
@@ -71,11 +72,6 @@
7172
border-bottom: 0;
7273
color: #212529;
7374
background-color: #f8f9fa;
74-
-webkit-transition: all 0.5s ease;
75-
-moz-transition: all 0.5s ease;
76-
-ms-transition: all 0.5s ease;
77-
-o-transition: all 0.5s ease;
78-
transition: all 0.5s ease;
7975
}
8076

8177
.jd-register-login-wrapper .jd-register-login-tab li span.active,
@@ -105,6 +101,7 @@
105101
.jd-register-login-wrapper .jd-register-login-box .jd-inputbox-control {
106102
display: block;
107103
margin-bottom: 1rem;
104+
position: relative;
108105
}
109106

110107
.jd-register-login-wrapper .jd-register-login-box .jd-button-control:last-child,
@@ -114,7 +111,7 @@
114111

115112
.jd-register-login-wrapper .jd-control-check-raido {
116113
position: relative;
117-
display: block;
114+
display: flex;
118115
padding-left: 0;
119116
}
120117

@@ -143,6 +140,8 @@
143140
.jd-register-login-wrapper .jd-register-login-tab .jd-inputbox-control.jd-control-check-raido {
144141
margin-bottom: 0;
145142
padding: 15px;
143+
width: 50%;
144+
text-align: center;
146145
}
147146

148147
.jd-register-login-wrapper .jd-register-login-box .jd-inputbox-control .jd-form-input {
@@ -158,7 +157,7 @@
158157
font-size: 16px;
159158
font-weight: 500;
160159
line-height: 40px;
161-
padding: 0 19px;
160+
padding: 0 15px;
162161
background-color: #fff;
163162
border: 1px solid #efefef;
164163
-webkit-border-radius: 3px;
@@ -252,6 +251,7 @@
252251
font-size: 16px;
253252
line-height: 24px;
254253
padding: 8px 15px;
254+
margin-top: 10px;
255255
text-align: center;
256256
text-decoration: none;
257257
-webkit-transition: all 0.3s ease-out 0s;
@@ -278,11 +278,11 @@
278278
display: inline-block;
279279
}
280280

281-
.error {
281+
.jd-register-login-wrapper .error {
282282
color: red;
283283
}
284284

285-
#error_message1 {
285+
.jd-register-login-wrapper #error_message1 {
286286
margin-bottom: 10px;
287287
}
288288

@@ -299,4 +299,24 @@
299299

300300
.jd-register-login-wrapper .jd-inputbox-control label.error {
301301
float: none !important;
302+
}
303+
304+
.jd-input-group-addon {
305+
padding: 0 10px;
306+
margin-bottom: 0;
307+
font-size: 16px;
308+
font-weight: 400;
309+
line-height: 40px;
310+
color: #495057;
311+
text-align: center;
312+
background-color: #e9ecef;
313+
border: 1px solid #ced4da;
314+
border-radius: 0;
315+
position: absolute;
316+
bottom: 0;
317+
right: 0;
318+
}
319+
320+
.jd-register-login-wrapper .showpass {
321+
cursor: pointer;
302322
}

tmpl/assets/registerlogin.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
/**
22
* @package Register Login Joomla Module
3-
* @version 1.9
4-
* @author www.joomdev.com
5-
* @copyright Copyright (C) 2009 - 2018 www.joomdev.com. All rights reserved.
6-
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
3+
* @author JoomDev
4+
* @copyright Copyright (C) 2018 Joomdev, Inc. All rights reserved.
5+
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
76
*/
87

98
jQuery(document).ready(function () {

tmpl/assets/registerloginajax.js

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
/**
22
* @package Register Login Joomla Module
3-
* @version 1.9
4-
* @author www.joomdev.com
5-
* @copyright Copyright (C) 2009 - 2018 www.joomdev.com. All rights reserved.
6-
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
3+
* @author JoomDev
4+
* @copyright Copyright (C) 2018 Joomdev, Inc. All rights reserved.
5+
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
76
*/
87

98
jQuery(document).ready(function () {
@@ -21,18 +20,6 @@ jQuery(document).ready(function () {
2120
}
2221
});
2322
jQuery("#registration_form").validate({
24-
rules: {
25-
recaptcha_response_field: "required"
26-
},
27-
errorPlacement: function (error, element) {
28-
if (element.attr("name") == "recaptcha_response_field") {
29-
error.insertAfter("#registration_form #recaptcha_area");
30-
} else if (element.attr("name") == "terms") {
31-
error.insertAfter("#registration_form #terms_");
32-
} else {
33-
error.insertAfter(element);
34-
}
35-
},
3623
submitHandler: function () {
3724
var submit = jQuery('#register_submit');
3825
jQuery.ajax({

0 commit comments

Comments
 (0)