summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2018-10-18 09:51:08 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2018-10-18 09:51:08 +0200
commit4f75173f113c70660d761bc62742c5dabda2e67c (patch)
treeb761d5162d88c6e33a4e08a8c4e05380da23f7cf
parent2634ceb35b72eac94e6bf4c61640036392c5f97f (diff)
downloadnextcloud-server-4f75173f113c70660d761bc62742c5dabda2e67c.tar.gz
nextcloud-server-4f75173f113c70660d761bc62742c5dabda2e67c.zip
Remove unreliable 2FA state message on personal 2FA settings page
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
-rw-r--r--lib/private/Settings/Personal/Security.php1
-rw-r--r--settings/templates/settings/personal/security.php9
2 files changed, 0 insertions, 10 deletions
diff --git a/lib/private/Settings/Personal/Security.php b/lib/private/Settings/Personal/Security.php
index 0efe2d0746b..d8cd711ca08 100644
--- a/lib/private/Settings/Personal/Security.php
+++ b/lib/private/Settings/Personal/Security.php
@@ -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,
diff --git a/settings/templates/settings/personal/security.php b/settings/templates/settings/personal/security.php
index 6b2c37b6a88..778d711d90f 100644
--- a/settings/templates/settings/personal/security.php
+++ b/settings/templates/settings/personal/security.php
@@ -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>