diff options
| author | spiderr <spiderr@bitweaver.org> | 2020-08-12 12:23:27 -0400 |
|---|---|---|
| committer | spiderr <spiderr@bitweaver.org> | 2020-08-12 12:23:27 -0400 |
| commit | 9505b7a4c2e117bf555a739d22d13a72d1ba072a (patch) | |
| tree | 491bd7336a9ae7bb8fc781a4807e134d4fd586d0 /admin | |
| parent | 0c20b1f6b3b5647c63609f3899fa106ab74d33c3 (diff) | |
| download | users-9505b7a4c2e117bf555a739d22d13a72d1ba072a.tar.gz users-9505b7a4c2e117bf555a739d22d13a72d1ba072a.tar.bz2 users-9505b7a4c2e117bf555a739d22d13a72d1ba072a.zip | |
move all captcha code to users/
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/admin_login_inc.php | 4 | ||||
| -rw-r--r-- | admin/verify_emails.php | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/admin/admin_login_inc.php b/admin/admin_login_inc.php index 10bab17..653609c 100644 --- a/admin/admin_login_inc.php +++ b/admin/admin_login_inc.php @@ -142,8 +142,8 @@ $registerSettings = array( 'type' => "text", 'note' => "This will be given to you after registering your site with Google", ), - 'users_register_recaptcha_private_key' => array( - 'label' => "reCAPTCHA Private Key", + 'users_register_recaptcha_secret_key' => array( + 'label' => "reCAPTCHA Secret Key", 'type' => "text", 'note' => "This will be given to you after registering your site with Google", ), diff --git a/admin/verify_emails.php b/admin/verify_emails.php index 488ccd3..202778b 100644 --- a/admin/verify_emails.php +++ b/admin/verify_emails.php @@ -6,7 +6,7 @@ // Initialization require_once( '../../kernel/setup_inc.php' ); - +if( $validatedGroup = $gBitSystem->getConfig( 'users_validate_email_group' ) ) { $gBitUser->verifyTicket(); $whereSql = ''; @@ -24,7 +24,7 @@ require_once( '../../kernel/setup_inc.php' ); flush(); $emailStatus = $gBitUser->verifyMx($email,$errors); if( $emailStatus === true){ - $gBitUser->addUserToGroup( $id , $gBitSystem->getConfig('users_validate_email_group') ); + $gBitUser->addUserToGroup( $id , $validatedGroup ); print "valid"; } elseif( $emailStatus === -1 ) { print "MX connection failed"; @@ -34,5 +34,7 @@ require_once( '../../kernel/setup_inc.php' ); print "<br/>\n"; flush(); } - +} else { + +} |
