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

Commit 8faee889 authored by theronakpatel's avatar theronakpatel
Browse files

added condition

parent 31d909af
Loading
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -183,9 +183,11 @@ class AccountController extends Controller {
			}
		}
		
		// (Reverted) no server-side mandatory enforcement for recovery email here
		
		try {
			if (!$recoveryEmail) {
				throw new RecoveryEmailValidationException('Recovery Email is required.');
			}
			
			$username = mb_strtolower($username, 'UTF-8');
			$mainDomain = $this->userService->getMainDomain();
			$userEmail = $username.'@'.$mainDomain;