aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-12-03 08:44:09 +0100
committerJulius Härtl <jus@bitgrid.net>2021-12-03 08:44:09 +0100
commitcdda25acb49e50e5989743c0251b394dbbebcaa5 (patch)
tree3caada84fafe2b6d994301d47b4b13db53625407 /core
parentaa3f4bdf6351a600f1b422c6ab1daf75727c265e (diff)
downloadnextcloud-server-cdda25acb49e50e5989743c0251b394dbbebcaa5.tar.gz
nextcloud-server-cdda25acb49e50e5989743c0251b394dbbebcaa5.zip
Adjust auth token link design
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core')
-rw-r--r--core/css/login/authpicker.css5
-rw-r--r--core/templates/loginflow/authpicker.php8
-rw-r--r--core/templates/loginflowv2/authpicker.php6
3 files changed, 12 insertions, 7 deletions
diff --git a/core/css/login/authpicker.css b/core/css/login/authpicker.css
index 3603a7906e4..d245c48680f 100644
--- a/core/css/login/authpicker.css
+++ b/core/css/login/authpicker.css
@@ -7,3 +7,8 @@
border-radius: 3px;
cursor: default;
}
+
+.apptoken-link {
+ margin: 20px;
+ display: block;
+}
diff --git a/core/templates/loginflow/authpicker.php b/core/templates/loginflow/authpicker.php
index 02b4b9cc003..e0980a8d2b3 100644
--- a/core/templates/loginflow/authpicker.php
+++ b/core/templates/loginflow/authpicker.php
@@ -64,8 +64,8 @@ $urlGenerator = $_['urlGenerator'];
<input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>">
<input id="submit-app-token-login" type="submit" class="login primary icon-confirm-white" value="<?php p($l->t('Grant access')) ?>">
</form>
-</div>
-<?php if (empty($_['oauthState'])): ?>
-<a id="app-token-login" class="warning" href="#"><?php p($l->t('Alternative log in using app token')) ?></a>
-<?php endif; ?>
+ <?php if (empty($_['oauthState'])): ?>
+ <a id="app-token-login" class="apptoken-link" href="#"><?php p($l->t('Alternative log in using app token')) ?></a>
+ <?php endif; ?>
+</div>
diff --git a/core/templates/loginflowv2/authpicker.php b/core/templates/loginflowv2/authpicker.php
index 468eed99e35..af49ed6d760 100644
--- a/core/templates/loginflowv2/authpicker.php
+++ b/core/templates/loginflowv2/authpicker.php
@@ -65,7 +65,7 @@ $urlGenerator = $_['urlGenerator'];
<input id="submit-app-token-login" type="submit" class="login primary icon-confirm-white" value="<?php p($l->t('Grant access')) ?>">
</form>
+ <?php if (empty($_['oauthState'])): ?>
+ <a id="app-token-login" class="apptoken-link" href="#"><?php p($l->t('Alternative log in using app token')) ?></a>
+ <?php endif; ?>
</div>
-<?php if (empty($_['oauthState'])): ?>
- <a id="app-token-login" class="warning" href="#"><?php p($l->t('Alternative log in using app token')) ?></a>
-<?php endif; ?>