diff --git a/css/style.css b/css/style.css new file mode 100644 index 0000000..8255aca --- /dev/null +++ b/css/style.css @@ -0,0 +1,14 @@ +/** + * Nextcloud - U2F 2FA + * + * This file is licensed under the Affero General Public License version 3 or + * later. See the COPYING file. + * + * @author Christoph Wurst + * @copyright Christoph Wurst 2016 + */ + +#body-login .wrapper .warning img { + width: 100px; + margin-left: 80px; +} \ No newline at end of file diff --git a/img/u2f.svg b/img/u2f.svg new file mode 100644 index 0000000..a16bb2c --- /dev/null +++ b/img/u2f.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/js/challenge.js b/js/challenge.js index a397a71..d2e52f5 100644 --- a/js/challenge.js +++ b/js/challenge.js @@ -6,6 +6,7 @@ OCA.TwoFactor_U2F = OCA.TwoFactor_U2F || {}; $(function () { + return; var req = JSON.parse($('#u2f-auth').val()); console.log("sign: ", req); u2f.sign(req, function (data) { diff --git a/lib/Provider/U2FProvider.php b/lib/Provider/U2FProvider.php index c108dbb..13bac58 100644 --- a/lib/Provider/U2FProvider.php +++ b/lib/Provider/U2FProvider.php @@ -50,7 +50,7 @@ class U2FProvider implements IProvider { * @return string */ public function getDisplayName() { - return 'U2F Device'; + return 'U2F device'; } /** diff --git a/templates/challenge.php b/templates/challenge.php index a0192b2..2a14220 100644 --- a/templates/challenge.php +++ b/templates/challenge.php @@ -2,6 +2,7 @@ script('twofactor_u2f', 'vendor/u2f-api'); script('twofactor_u2f', 'challenge'); +style('twofactor_u2f', 'style'); ?> @@ -11,7 +12,6 @@ script('twofactor_u2f', 'challenge'); -
-

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

-
-

t('Note: Chome is the only browser that supports U2F devices. You need to install the "U2F Support Add-on" on Firefox to use U2F.')) ?>

\ No newline at end of file + +

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

+

t('Chrome is the only browser that supports U2F devices. You need to install the "U2F Support Add-on" on Firefox to use U2F.')) ?>

\ No newline at end of file