diff --git a/upload/inc/languages/english/isango.lang.php b/upload/inc/languages/english/isango.lang.php index 0851894..c57ee70 100644 --- a/upload/inc/languages/english/isango.lang.php +++ b/upload/inc/languages/english/isango.lang.php @@ -22,5 +22,7 @@ $l['isango_no_service'] = "No service is available for you to connect at this moment."; $l['isango_no_connection'] = "No connection detail is available for your account at this moment. You can add connections from below."; $l['isango_existing_connection'] = "The authentication you are trying to connect is already registered with some other account."; +$l['isango_unverified_title'] = "Unverified User Data"; +$l['isango_unverified_data'] = "Returned data from the provider is not verified. Please pass verification of your account data at provider's end and try back."; $l['isango_invalid_data'] = "Service '{1}' failed to return acceptable {2}. Check your account settings or try different service gateway."; $l['isango_connect_error_title'] = "Authentication Connection Error!!!"; \ No newline at end of file diff --git a/upload/inc/plugins/isango.php b/upload/inc/plugins/isango.php index 189bd08..ae8a149 100644 --- a/upload/inc/plugins/isango.php +++ b/upload/inc/plugins/isango.php @@ -296,6 +296,15 @@ function isango_login($user, $gateway) $errors = array(); $udata = isango_fetchinfo($user, $gateway); + // Check verified status, if available + if(isset($udata['vfd'])) { + if(!$udata['vfd']) { + error($lang->isango_unverified_data, $lang->isango_unverified_title); + } else { + unset($udata['vfd']); + } + } + foreach ($udata as $key => $val) { $udata[$key] = $val = filter_var($db->escape_string($val), FILTER_SANITIZE_STRING); if (empty($val) || ($val == "email" && !filter_var($val, FILTER_VALIDATE_EMAIL))) { diff --git a/upload/inc/plugins/isango/github.ini b/upload/inc/plugins/isango/github.ini index 52aaaeb..d648ac6 100644 --- a/upload/inc/plugins/isango/github.ini +++ b/upload/inc/plugins/isango/github.ini @@ -12,4 +12,5 @@ header[User-Agent] = "Isango" [info] id = "{$u['id']}" name = "{$u['name']}" -email = "{$u['email']}" \ No newline at end of file +email = "{$u['email']}" +vfd = "{$u['verified']}" \ No newline at end of file