summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-01-15 07:23:49 +0100
committerGitHub <noreply@github.com>2020-01-15 07:23:49 +0100
commit303aeb2374472cc39ef097bda2c20824d032021d (patch)
treea7ce684250db0b4714cd910bc259ce03555ac10f /core
parent4359394f441e13d80ac3c84ba534932a0c70b120 (diff)
parenta673ff3a63b17ba4df194d60fe8a6e6eb2671557 (diff)
downloadnextcloud-server-303aeb2374472cc39ef097bda2c20824d032021d.tar.gz
nextcloud-server-303aeb2374472cc39ef097bda2c20824d032021d.zip
Merge pull request #18898 from nextcloud/fix/2fa-page-max-width
Fix max width on 2FA pages
Diffstat (limited to 'core')
-rw-r--r--core/css/guest.css4
-rw-r--r--core/templates/twofactorselectchallenge.php2
-rw-r--r--core/templates/twofactorshowchallenge.php2
3 files changed, 6 insertions, 2 deletions
diff --git a/core/css/guest.css b/core/css/guest.css
index 26c8fbc9ccd..7fbab45b929 100644
--- a/core/css/guest.css
+++ b/core/css/guest.css
@@ -471,6 +471,10 @@ form .warning input[type='checkbox']+label {
color: #fff !important;
}
+.body-login-container.two-factor {
+ max-width: 290px;
+ margin: 15px auto 0;
+}
.two-factor-provider {
display: flex;
border-radius: 3px; /* --border-radius */
diff --git a/core/templates/twofactorselectchallenge.php b/core/templates/twofactorselectchallenge.php
index 86561cddb36..830b82b0415 100644
--- a/core/templates/twofactorselectchallenge.php
+++ b/core/templates/twofactorselectchallenge.php
@@ -1,7 +1,7 @@
<?php
$noProviders = empty($_['providers']);
?>
-<div class="body-login-container update">
+<div class="body-login-container update two-factor">
<h2 class="two-factor-header"><?php p($l->t('Two-factor authentication')) ?></h2>
<?php if (!$noProviders): ?>
<p><?php p($l->t('Enhanced security is enabled for your account. Choose a second factor for authentication:')) ?></p>
diff --git a/core/templates/twofactorshowchallenge.php b/core/templates/twofactorshowchallenge.php
index e3270b80627..3e789c7490d 100644
--- a/core/templates/twofactorshowchallenge.php
+++ b/core/templates/twofactorshowchallenge.php
@@ -11,7 +11,7 @@ $provider = $_['provider'];
$template = $_['template'];
?>
-<div class="body-login-container update">
+<div class="body-login-container update two-factor">
<h2 class="two-factor-header"><?php p($provider->getDisplayName()); ?></h2>
<?php if ($error): ?>
<?php if($error_message): ?>