Skip to content

Commit

Permalink
Update ycom_user.php
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndr-w authored Aug 29, 2024
1 parent f9f5c28 commit 7c4e641
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/ycom_user.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7c4e641

Please sign in to comment.