File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
src/java/fr/paris/lutece/plugins/forms
webapp/WEB-INF/conf/plugins Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -251,6 +251,8 @@ public final class FormsConstants
251
251
public static final String SEPARATOR_UNDERSCORE = "_" ;
252
252
public static final String SEPARATOR_SEMICOLON = ";" ;
253
253
public static final String END_OF_LINE = "\n " ;
254
+ public static final String FO_LOGIN_PAGE_PARAMETERS = "forms.frontOffice.loginPage.parameters" ;
255
+
254
256
255
257
256
258
/**
Original file line number Diff line number Diff line change @@ -139,7 +139,6 @@ public class FormXPage extends MVCApplication
139
139
private static final String MARK_FORM_LIST = "form_list" ;
140
140
private static final String MARK_DISPLAY_CAPTCHA = "display_captcha" ;
141
141
private static final String MARK_CAPTCHA = "captcha" ;
142
- private static final String AUTH_PROVIDER = "auth_provider" ;
143
142
// Other
144
143
private static FormService _formService = SpringContextService .getBean ( FormService .BEAN_NAME );
145
144
private ICaptchaSecurityService _captchaSecurityService = new CaptchaSecurityService ( );
@@ -1238,6 +1237,8 @@ public synchronized XPage doSynchronousUploadDocument( HttpServletRequest reques
1238
1237
private void isRequestFromALoginPage (HttpServletRequest request )
1239
1238
{
1240
1239
String urlFromRequestReferer = request .getHeader ("referer" );
1240
+ // get property from forms.frontoffice.loginPage.parameters
1241
+ String AUTH_PROVIDER = AppPropertiesService .getProperty (FormsConstants .FO_LOGIN_PAGE_PARAMETERS );
1241
1242
if (urlFromRequestReferer != null && urlFromRequestReferer .contains (AUTH_PROVIDER ))
1242
1243
{
1243
1244
isRequestFromLoginPage = true ;
Original file line number Diff line number Diff line change @@ -37,3 +37,5 @@ forms.publicdashboard.question.isPublished=true
37
37
38
38
# Export field list
39
39
forms.entryTypeGeolocation.export.fields =address
40
+
41
+ forms.frontOffice.loginPage.parameters =page=mylutece&action=login&auth_provider=mylutece-database
You can’t perform that action at this time.
0 commit comments