From 1b23808772e1158603b93a24c5df241c46fae756 Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Wed, 19 Apr 2017 10:21:52 -0400 Subject: Changed response to account activation --- dash/profile.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dash/profile.php') diff --git a/dash/profile.php b/dash/profile.php index d8e4af3..d730dc9 100644 --- a/dash/profile.php +++ b/dash/profile.php @@ -74,6 +74,9 @@ $result->free(); escape_string($_POST['bio']).'\''; + if (!empty($_POST['address'])) { + if (!geolocate($_POST['address'], $b_user['zipcode'])) dash_fatal('The address provided is not valid.'); + } $addr = empty($_POST['address']) ? 'NULL' : '\''.$db->escape_string($_POST['address']).'\''; $patterns = array( 'email' => '/^.+@.+\..+$/', -- cgit v1.2.3