diff options
Diffstat (limited to 'lib/Provider/TotpProvider.php')
-rw-r--r-- | lib/Provider/TotpProvider.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Provider/TotpProvider.php b/lib/Provider/TotpProvider.php index bffa94b..1e1b99d 100644 --- a/lib/Provider/TotpProvider.php +++ b/lib/Provider/TotpProvider.php @@ -99,6 +99,6 @@ class TotpProvider implements IProvider, IProvidesIcons, IProvidesPersonalSettin } public function getPersonalSettings(IUser $user): IPersonalProviderSettings { - return new Personal(); + return new Personal($this->totp->hasSecret($user) ? ITotp::STATE_ENABLED : ITotp::STATE_DISABLED); } } |