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

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

recoveryemail can be null

parent 65d24da2
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -236,7 +236,7 @@ class UserService {
		if ($this->userExists($username)) {
			throw new Exception("Username is already taken.");
		}
		if (!empty($recoveryEmail) || $this->checkRecoveryEmailAvailable($recoveryEmail)) {
		if (!empty($recoveryEmail) && $this->checkRecoveryEmailAvailable($recoveryEmail)) {
			throw new Exception("Recovery email address is already taken.");
		}
		return $this->addNewUserToLDAP($displayname, $recoveryEmail, $username, $userEmail, $password);