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

Unverified Commit a0b60bf3 authored by Akhil's avatar Akhil
Browse files

Add sleep value of 2

parent 9b16fa08
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -137,8 +137,9 @@ class AccountController extends Controller {
		try {
			$mainDomain = $this->userService->getMainDomain();
			$userEmail = $username.'@'.$mainDomain;

			$newUserEntry = $this->userService->registerUser($displayname, $recoveryEmail, $username, $userEmail, $password);
			sleep(2);

			$this->userService->setAccountDataLocally($username, $userEmail, $newUserEntry['quota']);
			$this->userService->createHMEAlias($username, $userEmail);
			$this->userService->createNewDomainAlias($username, $userEmail);
+0 −1
Original line number Diff line number Diff line
@@ -438,7 +438,6 @@ class UserService {
	 * @return void
	 */
	public function setAccountDataLocally(string $uid, string $mailAddress, string $quota): void {
		
		$user = $this->getUser($uid);
		if (is_null($user)) {
			$this->logger->error('User not found');