Skip to content

Commit 25172b2

Browse files
committed
Revert "Check Address against RPC"
This reverts commit f620d03.
1 parent f620d03 commit 25172b2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

include/pages/register/register.inc.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@
2727
// Check if recaptcha is enabled, process form data if valid or disabled
2828
isset($_POST['token']) ? $token = $_POST['token'] : $token = '';
2929
if ($user->register(@$_POST['username'], @$_POST['coinaddress'], @$_POST['password1'], @$_POST['password2'], @$_POST['pin'], @$_POST['email1'], @$_POST['email2'], @$_POST['tac'], $token)) {
30-
(!$setting->getValue('accounts_confirm_email_disabled')) ? $_SESSION['POPUP'][] = array('CONTENT' => 'Please check your mailbox to activate this account', 'TYPE' => 'alert alert-warning') : $_SESSION['POPUP'][] = array('CONTENT' => 'Account created, please login', 'TYPE' => 'alert alert-warning');
31-
} else if {
32-
if (!$this->bitcoin->validateaddress($_POST['coinaddress'])) {
33-
$_SESSION['POPUP'][] = array('CONTENT' => 'Coin address is not valid', 'TYPE' => 'alert alert-warning');
34-
}
30+
(!$setting->getValue('accounts_confirm_email_disabled')) ? $_SESSION['POPUP'][] = array('CONTENT' => 'Please check your mailbox to activate this account') : $_SESSION['POPUP'][] = array('CONTENT' => 'Account created, please login');
3531
} else {
3632
$_SESSION['POPUP'][] = array('CONTENT' => 'Unable to create account: ' . $user->getError(), 'TYPE' => 'alert alert-danger');
3733
}

0 commit comments

Comments
 (0)