From 5a813aa8eba0b8ef0d9e3b464b0208e7e0d1eb13 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 1 Oct 2018 23:20:57 +0200 Subject: [PATCH] Adapt to server changes Signed-off-by: Christoph Wurst --- css/style.css | 5 ----- lib/Provider/U2FProvider.php | 24 ++++++++++++++++++++-- templates/challenge.php | 6 +++--- templates/personal.php | 40 +++++++++++++++++------------------- 4 files changed, 44 insertions(+), 31 deletions(-) diff --git a/css/style.css b/css/style.css index c0cf436..132c872 100644 --- a/css/style.css +++ b/css/style.css @@ -8,11 +8,6 @@ * @copyright Christoph Wurst 2016 */ -#body-login .wrapper .warning img { - width: 100px; - margin-left: 80px; -} - .u2f-loading { display: inline-block; vertical-align: sub; diff --git a/lib/Provider/U2FProvider.php b/lib/Provider/U2FProvider.php index 9abe099..6ef45f2 100644 --- a/lib/Provider/U2FProvider.php +++ b/lib/Provider/U2FProvider.php @@ -1,6 +1,6 @@ manager->getDevices($user)) > 0; } + /** + * @param IUser $user + * + * @return IPersonalProviderSettings + */ + public function getPersonalSettings(IUser $user): IPersonalProviderSettings { + return new Personal(); + } + + public function getLightIcon(): String { + return image_path('twofactor_u2f', 'app.svg'); + } + + public function getDarkIcon(): String { + return image_path('twofactor_u2f', 'app-dark.svg');; + } } diff --git a/templates/challenge.php b/templates/challenge.php index 70ed626..1e67cd0 100644 --- a/templates/challenge.php +++ b/templates/challenge.php @@ -11,9 +11,9 @@ style('twofactor_u2f', 'style'); - +

-t('Please plug in your U2F device and press the device button to authorize.')) ?> +t('Plug in your U2F device and press the device button to authorize.')) ?>

- t('Install the "U2F Support Add-on" on Firefox to use U2F, this is not needed on Chrome.')) ?> + t('In Firefox, you need to install the "U2F Support Add-on" to use U2F. This is not needed in Chrome.')) ?>

-

t('U2F second-factor auth')); ?>

-
- - t('Loading your devices …')); ?> -
- - - -

- +
+ + t('Loading your devices …')); ?>
+ + + +

+