diff --git a/appinfo/info.xml b/appinfo/info.xml
index 2f0176413f64a84463b2073bccf8e545ea39514b..9d09538766be74913df3180066be38c7308d34d2 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -10,7 +10,7 @@
- 6.0.2
+ 6.0.3
agpl
Murena SAS
EcloudAccounts
diff --git a/lib/Service/UserService.php b/lib/Service/UserService.php
index 0101604bda418fb66fc01b97ca9c9b83c2973d64..ecf5bddd7c0d1454c0fcc53447e927a1be5586fc 100644
--- a/lib/Service/UserService.php
+++ b/lib/Service/UserService.php
@@ -287,8 +287,15 @@ class UserService {
public function isBlacklistedEmail(string $email): bool {
// Get the blacklisted domains from configuration
$blacklistedDomainsInJson = $this->config->getAppValue(Application::APP_ID, 'blacklisted_domains');
+ if (empty($blacklistedDomainsInJson)) {
+ return false;
+ }
$blacklistedDomains = json_decode($blacklistedDomainsInJson, true);
-
+
+ if (empty($blacklistedDomains)) {
+ return false;
+ }
+
// Split the email address into parts using explode
$emailParts = explode('@', $email);