diff --git a/appinfo/info.xml b/appinfo/info.xml
index d72581ef79e5d69bd3e19b88accac89fb6cc0619..7ee2a930857e0d11d625c9ff43769a3c53c7aaa6 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -10,7 +10,7 @@
- 3.4.0
+ 3.4.1
agpl
Murena SAS
EcloudAccounts
diff --git a/lib/Controller/UserController.php b/lib/Controller/UserController.php
index d5bf36516bcb1641b35131efa38b23a4c6ecabce..96bf75a37539c26557bb82a72b046240ac03cfd9 100644
--- a/lib/Controller/UserController.php
+++ b/lib/Controller/UserController.php
@@ -50,10 +50,10 @@ class UserController extends ApiController {
}
// To check for old accounts
- $mailDomain = $this->config->getSystemValue('mail_domain');
- $mailDomainSuffix = !empty($mailDomain) ? '@' . $mailDomain : '';
- if (!$exists && stristr($uid, $mailDomainSuffix) === false) {
- $exists = $this->userService->userExists($uid . $mailDomainSuffix);
+ $legacyDomain = $this->config->getSystemValue('legacy_domain');
+ $legacyDomainSuffix = !empty($legacyDomain) ? '@' . $legacyDomain : '';
+ if (!$exists && stristr($uid, $legacyDomainSuffix) === false) {
+ $exists = $this->userService->userExists($uid . $legacyDomainSuffix);
}
$response->setData($exists);