Browse Source

Remove unreliable 2FA state message on personal 2FA settings page

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
tags/v15.0.0beta1
Christoph Wurst 5 years ago
parent
commit
4f75173f11
No account linked to committer's email address

+ 0
- 1
lib/private/Settings/Personal/Security.php View File

@@ -106,7 +106,6 @@ class Security implements ISettings {
}

return [
'isEnabled' => $this->twoFactorManager->isTwoFactorAuthenticated($user),
'providers' => array_map(function (IProvidesPersonalSettings $provider) use ($user) {
return [
'provider' => $provider,

+ 0
- 9
settings/templates/settings/personal/security.php View File

@@ -104,15 +104,6 @@ if($_['passwordChangeSupported']) {

<div id="two-factor-auth" class="section">
<h2><?php p($l->t('Two-Factor Authentication'));?></h2>
<p class="settings-hint">
<?php
if ($_['twoFactorProviderData']['enabled']) {
p($l->t('Two-factor authentication is enabled on your account.'));
} else {
p($l->t('Two-factor authentication is disabled on your account.'));
}
?>
</p>
<ul>
<?php foreach ($_['twoFactorProviderData']['providers'] as $data) { ?>
<li>

Loading…
Cancel
Save