mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-02 08:09:19 +08:00
Add on entity catch for totp variables
This commit is contained in:
parent
626ece5ce6
commit
841c48503e
1 changed files with 2 additions and 2 deletions
|
@ -1278,7 +1278,7 @@ class User implements UserInterface, EquatableInterface, PasswordAuthenticatedUs
|
|||
|
||||
public function getTotpSecret(): ?string
|
||||
{
|
||||
return $this->totpSecret;
|
||||
return $this->totpSecret ?? '';
|
||||
}
|
||||
|
||||
public function setTotpSecret(?string $totpSecret): self
|
||||
|
@ -1290,7 +1290,7 @@ class User implements UserInterface, EquatableInterface, PasswordAuthenticatedUs
|
|||
|
||||
public function getIsTotpEnabled(): ?bool
|
||||
{
|
||||
return $this->isTotpEnabled;
|
||||
return $this->isTotpEnabled ?? false;
|
||||
}
|
||||
|
||||
public function setIsTotpEnabled(?bool $isTotpEnabled): self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue