From 7c4e64104f1a49f644d9b480c019bfebd78750d2 Mon Sep 17 00:00:00 2001 From: Alexander Walther Date: Thu, 29 Aug 2024 17:38:02 +0200 Subject: [PATCH] Update ycom_user.php --- lib/ycom_user.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/ycom_user.php b/lib/ycom_user.php index b03051f..3a34051 100644 --- a/lib/ycom_user.php +++ b/lib/ycom_user.php @@ -184,14 +184,11 @@ public function setTermsofuseAccepted(bool $value = true) : self { /* Neues Passwort muss gesetzt werden */ /** @api */ - public function getNewPasswordRequired(bool $asBool = false) : mixed { - if($asBool) { - return (bool) $this->getValue("new_password_required"); - } - return $this->getValue("new_password_required"); + public function getNewPasswordRequired() : bool { + return (bool) $this->getValue("new_password_required"); } /** @api */ - public function setNewPasswordRequired(int $value = 1) : self { + public function setNewPasswordRequired(bool $value = true) : self { $this->setValue("new_password_required", $value); return $this; }