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

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

removed try block

parent a329cbba
Loading
Loading
Loading
Loading
Loading
+22 −28
Original line number Diff line number Diff line
@@ -291,7 +291,6 @@ class UserService {
		
		$newUserDN = "username=$username," . $base;
		$quota = $this->LDAPConnectionService->getLdapQuota() * 1024 * 1024;
		try {
		$newUserEntry = [
			'mailAddress' => $userEmail,
			'username' => $username,
@@ -315,11 +314,6 @@ class UserService {
			throw new Exception($username." user not found.");
		}
		return $newUserEntry;
		} catch (LDAPUserCreationException $e) {
			throw $e;
		} catch (Exception $e) {
			throw $e;
		}
	}
	/**
	 * Check if a recovery email address is available (not already taken by another user).