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

Commit a329cbba authored by Ronak Patel's avatar Ronak Patel
Browse files

added condition to stop exection

parent 50900c5b
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -311,6 +311,9 @@ class UserService {
			if (!$ret) {
				throw new LDAPUserCreationException("Error while adding entry to LDAP for username: " .  $username . ' Error: ' . ldap_error($connection), ldap_errno($connection));
			}
			if (is_null($this->getUser($username))) {
				throw new Exception($username." user not found.");
			}
			return $newUserEntry;
		} catch (LDAPUserCreationException $e) {
			throw $e;