[ADDED] Validate coin address during registration

This commit is contained in:
Sebastian Grewe 2014-05-16 15:57:06 +02:00
parent 67b862665d
commit 97547ca517

View File

@ -745,6 +745,10 @@ class User extends Base {
$this->setErrorMessage('Coin Address is to short');
return false;
}
if (!$this->bitcoin->validateaddress($coinaddress)) {
$this->setErrorMessage('Coin address is not valid');
return false;
}
if (preg_match('/[^a-z_\-0-9]/i', $username)) {
$this->setErrorMessage('Username may only contain alphanumeric characters');
return false;