Skip to content
Snippets Groups Projects
Unverified Commit 4f75173f authored by Christoph Wurst's avatar Christoph Wurst
Browse files

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

parent 2634ceb3
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment