]> source.dussan.org Git - nextcloud-server.git/commitdiff
list 2FA providers as buttons 1098/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Sat, 27 Aug 2016 10:27:05 +0000 (12:27 +0200)
committerChristoph Wurst <christoph@winzerhof-wurst.at>
Sat, 27 Aug 2016 10:27:05 +0000 (12:27 +0200)
core/css/styles.css
core/templates/twofactorselectchallenge.php
core/templates/twofactorshowchallenge.php

index 38de922ac9da60680fb55de4beec040251a084fb..8a8bc852f3ee1ce92dc7d1da6cbcb665a2e8b2fb 100644 (file)
@@ -38,8 +38,11 @@ body {
 
 .two-factor-provider {
        text-align: center;
-       width: 100%;
+       width: 258px !important;
        display: inline-block;
+       margin-bottom: 0 !important;
+       background-color: rgba(0,0,0,0.3) !important;
+       border: none !important;
 }
 
 a.two-factor-cancel {
index 1c8fcd362e5b94646d18d51629be4d6bba25ed21..1948499e604dac2e529984f31dbbd233a906d03c 100644 (file)
@@ -1,11 +1,11 @@
 <div class="warning">
-       <h2 class="two-factor-header"><?php p($l->t('Two-step verification')) ?></h2>
-       <p><?php p($l->t('Enhanced security has been enabled for your account. Please authenticate using a second factor.')) ?></p>
+       <h2 class="two-factor-header"><?php p($l->t('Two-factor authentication')) ?></h2>
+       <p><?php p($l->t('Enhanced security is enabled for your account. Please authenticate using a second factor.')) ?></p>
        <p>
                <ul>
                        <?php foreach ($_['providers'] as $provider): ?>
                                <li>
-                                       <a class="two-factor-provider"
+                                       <a class="button two-factor-provider"
                                           href="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.TwoFactorChallenge.showChallenge',
                                                                                [
                                                                                        'challengeProviderId' => $provider->getId(),
index 713032d923d44dd57f80be6a93222f2c47be39d9..fb161921675cd1afc556d6d9289102bb0adb3908 100644 (file)
@@ -12,7 +12,7 @@ $template = $_['template'];
 <div class="warning">
                <h2 class="two-factor-header"><?php p($provider->getDisplayName()); ?></h2>
                <?php if ($error): ?>
-               <p><?php p($l->t('An error occured while verifying the token')); ?></p>
+               <p><strong><?php p($l->t('Error while validating your second factor')); ?></strong></p>
                <?php endif; ?>
                <?php print_unescaped($template); ?>
 </div>