Skip to content

Commit

Permalink
Remove unreliable 2FA state message on personal 2FA settings page
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst committed Oct 18, 2018
1 parent 2634ceb commit 4f75173
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion lib/private/Settings/Personal/Security.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ private function getTwoFactorProviderData(): array {
}

return [
'isEnabled' => $this->twoFactorManager->isTwoFactorAuthenticated($user),
'providers' => array_map(function (IProvidesPersonalSettings $provider) use ($user) {
return [
'provider' => $provider,
Expand Down
9 changes: 0 additions & 9 deletions settings/templates/settings/personal/security.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,6 @@

<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>
Expand Down

0 comments on commit 4f75173

Please sign in to comment.