[FIX] Address Validation in user class
This commit is contained in:
parent
c00b6d6757
commit
e59d3a8e25
@ -428,14 +428,8 @@ class User extends Base {
|
||||
return false;
|
||||
}
|
||||
if ($this->bitcoin->can_connect() === true) {
|
||||
try {
|
||||
$aStatus = $this->bitcoin->validateaddress($address);
|
||||
if (!$aStatus['isvalid']) {
|
||||
$this->setErrorMessage('Invalid coin address');
|
||||
return false;
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
$this->setErrorMessage('Unable to verify coin address');
|
||||
if (!$this->bitcoin->validateaddress($address)) {
|
||||
$this->setErrorMessage('Invalid coin address');
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user