From 3926b9876a263513116983ac9f33f83ffddc3574 Mon Sep 17 00:00:00 2001 From: Xavier Guimard Date: Wed, 8 Mar 2017 21:09:21 +0000 Subject: [PATCH] StayConnected checkbox (closes: #1131) --- .../lib/Lemonldap/NG/Portal/Main/Display.pm | 1 + lemonldap-ng-portal/site/htdocs/static/languages/en.json | 1 + lemonldap-ng-portal/site/htdocs/static/languages/fr.json | 1 + .../site/templates/bootstrap/checklogins.tpl | 9 ++++++++- 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Display.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Display.pm index c3b76385b..6256ac958 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Display.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Display.pm @@ -182,6 +182,7 @@ sub display { MAIL_URL => $self->conf->{mailUrl}, REGISTER_URL => $self->conf->{registerUrl}, HIDDEN_INPUTS => $self->buildHiddenForm($req), + STAYCONNECTED => $self->conf->{stayConnected}, ); # Display captcha if it's enabled diff --git a/lemonldap-ng-portal/site/htdocs/static/languages/en.json b/lemonldap-ng-portal/site/htdocs/static/languages/en.json index f3b02633a..5e4a30ea2 100644 --- a/lemonldap-ng-portal/site/htdocs/static/languages/en.json +++ b/lemonldap-ng-portal/site/htdocs/static/languages/en.json @@ -177,6 +177,7 @@ "serviceProvidedBy":"Service provided by", "sessionsDeleted":"The following sessions have been closed", "SSOSessionInactive":"SSO session inactive", +"stayConnected": "Stay connected on this device", "submit":"Submit", "touchU2fDevice": "Please touch the flashing U2F device now.", "u2fFailed": "U2F verification failed. Retry or contact your administrator", diff --git a/lemonldap-ng-portal/site/htdocs/static/languages/fr.json b/lemonldap-ng-portal/site/htdocs/static/languages/fr.json index 237a6125e..f4209d29b 100644 --- a/lemonldap-ng-portal/site/htdocs/static/languages/fr.json +++ b/lemonldap-ng-portal/site/htdocs/static/languages/fr.json @@ -177,6 +177,7 @@ "serviceProvidedBy":"Ce service est fourni par", "sessionsDeleted":"Les sessions suivantes ont été fermées", "SSOSessionInactive":"Session SSO inactive", +"stayConnected": "Rester connecté sur cet appareil", "submit":"Envoyer", "touchU2fDevice": "Poser votre doigt sur le périphérique U2F", "u2fFailed": "La vérification U2F a échoué, réessayez ou contactez votre administrateur", diff --git a/lemonldap-ng-portal/site/templates/bootstrap/checklogins.tpl b/lemonldap-ng-portal/site/templates/bootstrap/checklogins.tpl index 134a97e4c..264149138 100644 --- a/lemonldap-ng-portal/site/templates/bootstrap/checklogins.tpl +++ b/lemonldap-ng-portal/site/templates/bootstrap/checklogins.tpl @@ -7,4 +7,11 @@ - + +
+ +
+