From 8e4ae23c487b29bd8ea1a6d7d81e6996957e86fb Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 17 Oct 2018 13:09:11 +0200 Subject: Do not try to contact lookup server without internet connection or URL Signed-off-by: Arthur Schiwon --- settings/BackgroundJobs/VerifyUserData.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'settings/BackgroundJobs') diff --git a/settings/BackgroundJobs/VerifyUserData.php b/settings/BackgroundJobs/VerifyUserData.php index 8d54cde9dd9..b4a60ec8405 100644 --- a/settings/BackgroundJobs/VerifyUserData.php +++ b/settings/BackgroundJobs/VerifyUserData.php @@ -182,6 +182,9 @@ class VerifyUserData extends Job { * @return bool true if we could check the verification code, otherwise false */ protected function verifyViaLookupServer(array $argument, $dataType) { + if(empty($this->lookupServerUrl) || $this->config->getSystemValue('has_internet_connection', true) === false) { + return false; + } $user = $this->userManager->get($argument['uid']); -- cgit v1.2.3