From ee73029d2ad00335d5a6a4b3302b5599551556a6 Mon Sep 17 00:00:00 2001 From: Xavier Guimard Date: Sat, 17 Mar 2018 20:29:56 +0100 Subject: [PATCH] UTOTP template (#1391) --- lemonldap-ng-portal/MANIFEST | 1 + .../site/htdocs/static/languages/ar.json | 1 + .../site/htdocs/static/languages/de.json | 1 + .../site/htdocs/static/languages/en.json | 1 + .../site/htdocs/static/languages/es.json | 1 + .../site/htdocs/static/languages/fr.json | 3 +- .../site/htdocs/static/languages/it.json | 1 + .../site/htdocs/static/languages/nl.json | 1 + .../site/htdocs/static/languages/pt.json | 1 + .../site/htdocs/static/languages/ro.json | 1 + .../site/htdocs/static/languages/vi.json | 1 + .../site/templates/bootstrap/utotp2fcheck.tpl | 46 +++++++++++++++++++ 12 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 lemonldap-ng-portal/site/templates/bootstrap/utotp2fcheck.tpl diff --git a/lemonldap-ng-portal/MANIFEST b/lemonldap-ng-portal/MANIFEST index 606869ac7..2c2c8e2d6 100644 --- a/lemonldap-ng-portal/MANIFEST +++ b/lemonldap-ng-portal/MANIFEST @@ -318,6 +318,7 @@ site/templates/bootstrap/totpregister.tpl site/templates/bootstrap/u2fcheck.tpl site/templates/bootstrap/u2fregister.tpl site/templates/bootstrap/upgradesession.tpl +site/templates/bootstrap/utotp2fcheck.tpl site/templates/bootstrap/yubikeyform.tpl site/templates/common/bullet_go.png site/templates/common/key.png diff --git a/lemonldap-ng-portal/site/htdocs/static/languages/ar.json b/lemonldap-ng-portal/site/htdocs/static/languages/ar.json index 0eb09a140..97c406229 100644 --- a/lemonldap-ng-portal/site/htdocs/static/languages/ar.json +++ b/lemonldap-ng-portal/site/htdocs/static/languages/ar.json @@ -196,6 +196,7 @@ "stayConnected": "ابق على اتصال على هذا الجهاز", "submit":"قدم", "touchU2fDevice": "يرجى لمس جهاز U2F وامض الآن.", +"touchU2fDeviceOrEnterTotp": "Please touch the flashing U2F device or enter TOTP code.", "u2fFailed": "فشل التحقق من U2F. أعد محاولة الاتصال بالمشرف أو اتصل به", "u2fPermission": "قد تتم مطالبتك بالسماح للموقع إذن الوصول إلى مفاتيح الأمان الخاصة بك.بعد منح الإذن، سيبدأ الجهاز في العملية.", "u2fRegistered": "المفتاح الخاص بك تم تسجيله", diff --git a/lemonldap-ng-portal/site/htdocs/static/languages/de.json b/lemonldap-ng-portal/site/htdocs/static/languages/de.json index c5196539f..3f5b9351a 100644 --- a/lemonldap-ng-portal/site/htdocs/static/languages/de.json +++ b/lemonldap-ng-portal/site/htdocs/static/languages/de.json @@ -196,6 +196,7 @@ "stayConnected": "Stay connected on this device", "submit":"Submit", "touchU2fDevice": "Please touch the flashing U2F device now.", +"touchU2fDeviceOrEnterTotp": "Please touch the flashing U2F device or enter TOTP code.", "u2fFailed": "U2F verification failed. Retry or contact your administrator", "u2fPermission": "You may be prompted to allow the site permission to access your security keys. After granting permission, the device will start to blink.", "u2fRegistered": "Your key is registered", diff --git a/lemonldap-ng-portal/site/htdocs/static/languages/en.json b/lemonldap-ng-portal/site/htdocs/static/languages/en.json index 42ed34c3b..7c99ece67 100644 --- a/lemonldap-ng-portal/site/htdocs/static/languages/en.json +++ b/lemonldap-ng-portal/site/htdocs/static/languages/en.json @@ -196,6 +196,7 @@ "stayConnected": "Stay connected on this device", "submit":"Submit", "touchU2fDevice": "Please touch the flashing U2F device now.", +"touchU2fDeviceOrEnterTotp": "Please touch the flashing U2F device or enter TOTP code.", "u2fFailed": "U2F verification failed. Retry or contact your administrator", "u2fPermission": "You may be prompted to allow the site permission to access your security keys. After granting permission, the device will start to blink.", "u2fRegistered": "Your key has been registered.", diff --git a/lemonldap-ng-portal/site/htdocs/static/languages/es.json b/lemonldap-ng-portal/site/htdocs/static/languages/es.json index 3166c13cb..d9f4558fc 100644 --- a/lemonldap-ng-portal/site/htdocs/static/languages/es.json +++ b/lemonldap-ng-portal/site/htdocs/static/languages/es.json @@ -196,6 +196,7 @@ "stayConnected": "Stay connected on this device", "submit":"Submit", "touchU2fDevice": "Please touch the flashing U2F device now.", +"touchU2fDeviceOrEnterTotp": "Please touch the flashing U2F device or enter TOTP code.", "u2fFailed": "U2F verification failed. Retry or contact your administrator", "u2fPermission": "You may be prompted to allow the site permission to access your security keys. After granting permission, the device will start to blink.", "u2fRegistered": "Your key is registered", diff --git a/lemonldap-ng-portal/site/htdocs/static/languages/fr.json b/lemonldap-ng-portal/site/htdocs/static/languages/fr.json index 4108a82a7..72d9c271f 100644 --- a/lemonldap-ng-portal/site/htdocs/static/languages/fr.json +++ b/lemonldap-ng-portal/site/htdocs/static/languages/fr.json @@ -195,7 +195,8 @@ "SSOSessionInactive":"Session SSO inactive", "stayConnected": "Rester connecté sur cet appareil", "submit":"Envoyer", -"touchU2fDevice": "Poser votre doigt sur le périphérique U2F", +"touchU2fDevice": "Posez votre doigt sur le périphérique U2F", +"touchU2fDeviceOrEnterTotp": "Posez votre doigt sur le périphérique U2F ou entrer le code TOTP", "u2fFailed": "La vérification U2F a échoué, réessayez ou contactez votre administrateur", "u2fPermission": "Il est possible qu'on vous demande d'autoriser le site à accéder à votre clef. Après votre accord, la clef clignotera.", "u2fRegistered": "Votre clef a été enregistrée.", diff --git a/lemonldap-ng-portal/site/htdocs/static/languages/it.json b/lemonldap-ng-portal/site/htdocs/static/languages/it.json index fdc30cc3c..9747fe415 100644 --- a/lemonldap-ng-portal/site/htdocs/static/languages/it.json +++ b/lemonldap-ng-portal/site/htdocs/static/languages/it.json @@ -196,6 +196,7 @@ "stayConnected": "Resta connesso su questo dispositivo", "submit":"Invia", "touchU2fDevice": "Adesso tocca il dispositivo U2F lampeggiante.", +"touchU2fDeviceOrEnterTotp": "Please touch the flashing U2F device or enter TOTP code.", "u2fFailed": "Verifica U2F non riuscita. Riprovare o contattare l'amministratore", "u2fPermission": "È possibile che venga richiesto di consentire il permesso del sito per accedere alle chiavi di sicurezza. Dopo aver concesso il permesso, il dispositivo inizierà a lampeggiare.", "u2fRegistered": "La vostra chiave è registrata", diff --git a/lemonldap-ng-portal/site/htdocs/static/languages/nl.json b/lemonldap-ng-portal/site/htdocs/static/languages/nl.json index b942b8064..f16261d60 100644 --- a/lemonldap-ng-portal/site/htdocs/static/languages/nl.json +++ b/lemonldap-ng-portal/site/htdocs/static/languages/nl.json @@ -196,6 +196,7 @@ "stayConnected": "Stay connected on this device", "submit":"Submit", "touchU2fDevice": "Please touch the flashing U2F device now.", +"touchU2fDeviceOrEnterTotp": "Please touch the flashing U2F device or enter TOTP code.", "u2fFailed": "U2F verification failed. Retry or contact your administrator", "u2fPermission": "You may be prompted to allow the site permission to access your security keys. After granting permission, the device will start to blink.", "u2fRegistered": "Your key is registered", diff --git a/lemonldap-ng-portal/site/htdocs/static/languages/pt.json b/lemonldap-ng-portal/site/htdocs/static/languages/pt.json index 1729e6145..b33690c29 100644 --- a/lemonldap-ng-portal/site/htdocs/static/languages/pt.json +++ b/lemonldap-ng-portal/site/htdocs/static/languages/pt.json @@ -196,6 +196,7 @@ "stayConnected": "Stay connected on this device", "submit":"Submit", "touchU2fDevice": "Please touch the flashing U2F device now.", +"touchU2fDeviceOrEnterTotp": "Please touch the flashing U2F device or enter TOTP code.", "u2fFailed": "U2F verification failed. Retry or contact your administrator", "u2fPermission": "You may be prompted to allow the site permission to access your security keys. After granting permission, the device will start to blink.", "u2fRegistered": "Your key is registered", diff --git a/lemonldap-ng-portal/site/htdocs/static/languages/ro.json b/lemonldap-ng-portal/site/htdocs/static/languages/ro.json index c3118d95c..67df5ba8b 100644 --- a/lemonldap-ng-portal/site/htdocs/static/languages/ro.json +++ b/lemonldap-ng-portal/site/htdocs/static/languages/ro.json @@ -196,6 +196,7 @@ "stayConnected": "Stay connected on this device", "submit":"Submit", "touchU2fDevice": "Please touch the flashing U2F device now.", +"touchU2fDeviceOrEnterTotp": "Please touch the flashing U2F device or enter TOTP code.", "u2fFailed": "U2F verification failed. Retry or contact your administrator", "u2fPermission": "You may be prompted to allow the site permission to access your security keys. After granting permission, the device will start to blink.", "u2fRegistered": "Your key is registered", diff --git a/lemonldap-ng-portal/site/htdocs/static/languages/vi.json b/lemonldap-ng-portal/site/htdocs/static/languages/vi.json index 33202677b..bc4217fbc 100644 --- a/lemonldap-ng-portal/site/htdocs/static/languages/vi.json +++ b/lemonldap-ng-portal/site/htdocs/static/languages/vi.json @@ -196,6 +196,7 @@ "stayConnected": "Giữ kết nối trên thiết bị này", "submit":"Gửi", "touchU2fDevice": "Vui lòng chạm vào thiết bị U2F nhấp nháy ngay bây giờ.", +"touchU2fDeviceOrEnterTotp": "Please touch the flashing U2F device or enter TOTP code.", "u2fFailed": "Xác minh U2F không thành công. Thử lại hoặc liên hệ với quản trị viên của bạn ", "u2fPermission": "Bạn có thể được nhắc cho phép trang web được phép truy cập vào các khóa bảo mật của bạn. Sau khi cho phép, thiết bị sẽ bắt đầu nhấp nháy. ", "u2fRegistered": "Khóa của bạn đã được đăng ký", diff --git a/lemonldap-ng-portal/site/templates/bootstrap/utotp2fcheck.tpl b/lemonldap-ng-portal/site/templates/bootstrap/utotp2fcheck.tpl new file mode 100644 index 000000000..90ab7d1e7 --- /dev/null +++ b/lemonldap-ng-portal/site/templates/bootstrap/utotp2fcheck.tpl @@ -0,0 +1,46 @@ + + +
+ + +
alert">">
+
+ + +

+
+ + +
+
+ + + "> +
+ +
+ + +
+ +
+ +
+ + + + +
+ +
+ + +