Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 364bcc2f authored by Akhil's avatar Akhil 🙂
Browse files

Correct old accounts check

parent d5f52180
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ class UserController extends ApiController
        // To check for old accounts
        $mailDomain = $this->config->getSystemValue('mail_domain');
        $mailDomainSuffix = !empty($mailDomain) ? '@' . $mailDomain : '';
        if (stristr($uid, $mailDomainSuffix) === false) {
        if (!$exists && stristr($uid, $mailDomainSuffix) === false) {
            $exists = $this->userService->userExists($uid . $mailDomainSuffix);
        }