mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 05:25:15 +02:00
validate email addresses to see if the hostnames actually resolve before committing a new user
This commit is contained in:
parent
f9497bcb95
commit
949842a88d
2 changed files with 17 additions and 6 deletions
|
@ -65,10 +65,9 @@ function register_post(&$a) {
|
|||
if(! allowed_email($email))
|
||||
$err .= t('Your email domain is not among those allowed on this site.') . EOL;
|
||||
|
||||
if(! valid_email($email))
|
||||
if((! valid_email($email)) || (! validate_email($email)))
|
||||
$err .= t('Not a valid email address.') . EOL;
|
||||
|
||||
|
||||
$nickname = $_POST['nickname'] = strtolower($nickname);
|
||||
|
||||
if(! preg_match("/^[a-z][a-z0-9\-\_]*$/",$nickname))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue