I see “remember me” option in realm/login settings. FreeMarker has corresponding option “realm.rememberMe”. However I see another option in FreeMarker “login.rememberMe”. Why we need this option and how it wors?
1 Like
I had a similar question which caused me to go digging, seems like this is set here:
Properties messagesBundle = handleThemeResources(theme, locale);
Map<String, String> localizationTexts = realm.getRealmLocalizationTextsByLocale(locale.toLanguageTag());
messagesBundle.putAll(localizationTexts);
handleMessages(locale, messagesBundle);
// for some reason Resteasy 2.3.7 doesn't like query params and form params with the same name and will null out the code form param
UriBuilder uriBuilder = prepareBaseUriBuilder(page == LoginFormsPages.OAUTH_GRANT);
createCommonAttributes(theme, locale, messagesBundle, uriBuilder, page);
attributes.put("login", new LoginBean(formData));
if (status != null) {
attributes.put("statusCode", status.getStatusCode());
}
switch (page) {
case LOGIN_CONFIG_TOTP:
attributes.put("totp", new TotpBean(session, realm, user, uriInfo.getRequestUriBuilder()));
break;
case LOGIN_UPDATE_PROFILE:
UpdateProfileContext userCtx = (UpdateProfileContext) attributes.get(LoginFormsProvider.UPDATE_PROFILE_CONTEXT_ATTR);
Unless I have misunderstood the code, this is used in an error scenario to persist form data previously entered by the user.
Aicha
August 1, 2022, 7:32pm
3
Hello
Did you find the difference between realm.rememberMe and login.rememberMe?
(login.rememberMe still not worked for me)