parent
9af9011a14
commit
6315d8fe03
@ -281,7 +281,7 @@ class User extends Base {
|
|||||||
$this->setErrorMessage('Invalid email address');
|
$this->setErrorMessage('Invalid email address');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
/* if ($this->bitcoin->can_connect() === true && !empty($address)) {
|
if ($this->bitcoin->can_connect() === true && !empty($address)) {
|
||||||
try {
|
try {
|
||||||
$aStatus = $this->bitcoin->validateaddress($address);
|
$aStatus = $this->bitcoin->validateaddress($address);
|
||||||
if (!$aStatus['isvalid']) {
|
if (!$aStatus['isvalid']) {
|
||||||
@ -296,7 +296,7 @@ class User extends Base {
|
|||||||
$this->setErrorMessage('Unable to connect to RPC server for coin address validation');
|
$this->setErrorMessage('Unable to connect to RPC server for coin address validation');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
// Number sanitizer, just in case we fall through above
|
// Number sanitizer, just in case we fall through above
|
||||||
$threshold = min($this->config['ap_threshold']['max'], max(0, floatval($threshold)));
|
$threshold = min($this->config['ap_threshold']['max'], max(0, floatval($threshold)));
|
||||||
$donate = min(100, max(0, floatval($donate)));
|
$donate = min(100, max(0, floatval($donate)));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user