diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-10-15 17:32:27 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-10-18 16:24:55 +0300 |
commit | aa5de5f0f19fa4b470e97e86857211372e1f0d91 (patch) | |
tree | c47a63c2d9feac0b014e42bacafaa00efad75e1e /lib/Provider | |
parent | bc7c957aa5ec6e9f7e330c8a4ec2183842eb7907 (diff) |
Migrate to Vue
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Provider')
-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); } } |