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

Verified Commit 9f13fa9e authored by Nivesh Krishna's avatar Nivesh Krishna
Browse files

fix setuserval function

parent f9e7e7bb
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ class UserController extends ApiController {

		$user->setEMailAddress($email);
		$user->setQuota($quota);
		$this->config->setUserValue($uid, 'terms_of_service', 'tosAccepted', $tosAccepted);
		$this->config->setUserValue($uid, 'terms_of_service', 'tosAccepted', strval($tosAccepted));
		$recoveryEmailUpdated = $this->userService->setRecoveryEmail($uid, $recoveryEmail);
		if (!$recoveryEmailUpdated) {
			return $this->getErrorResponse($response, 'error_setting_recovery', 400);