summaryrefslogtreecommitdiffstats
path: root/settings/BackgroundJobs
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-10-17 13:09:11 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-10-18 17:49:28 +0200
commit8e4ae23c487b29bd8ea1a6d7d81e6996957e86fb (patch)
tree988f2f5d48e5e0cd958867849f36674245d8ee05 /settings/BackgroundJobs
parent7c8b3c1056d2549734ec4bb9ed547468ca2c2331 (diff)
downloadnextcloud-server-8e4ae23c487b29bd8ea1a6d7d81e6996957e86fb.tar.gz
nextcloud-server-8e4ae23c487b29bd8ea1a6d7d81e6996957e86fb.zip
Do not try to contact lookup server without internet connection or URL
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'settings/BackgroundJobs')
-rw-r--r--settings/BackgroundJobs/VerifyUserData.php3
1 files changed, 3 insertions, 0 deletions
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']);