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

Commit 65d24da2 authored by Ronak Patel's avatar Ronak Patel
Browse files

recoveryemail can be null

parent 374c2e77
Loading
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -196,7 +196,6 @@ class CaptchaService {
	 */
	private function updateSession(float $captchaResult): void {
		$this->session->set('captcha_result', $captchaResult);
		$this->session->set('captcha_verified', false);
	}

	
+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);