Open GoogleCodeExporter opened 8 years ago
Slightly more complicated to set up for update profile form so the following:
Same change to REGEX_updateAttributes.form in PwmSetting.properties
In UpdateProfileServlet at line 168
for (final FormConfiguration formConfiguration : formFields) {
final String attrName = formConfiguration.getAttributeName();
if (!formProps.containsKey(attrName)) {
final String userCurrentValue = AttributeValueModifier.setAttributeValue(formConfiguration, currentUserAttributes);
if (userCurrentValue != null) {
formProps.setProperty(attrName, userCurrentValue);
}
}
}
Change in Helper.java writeFormValuesToLdap line 660
for (final FormConfiguration formConfiguration : formValues.keySet()) {
final String value = AttributeValueModifier.getAttributeValue(formConfiguration, formValues.get(formConfiguration));
tempMap.put(formConfiguration.getAttributeName(), value);
}
(Suggest NewUserServlet uses Helper.writeFormValuesToLdap)
Update NewUserServlet change above to:
final String attributeName = formConfiguration.getAttributeName();
final String value = AttributeValueModifier.getAttributeValue(formConfiguration, formValues.get(attributeName));
createAttributes.put(attributeName, value);
Original comment by ian.well...@gmail.com
on 25 Oct 2013 at 8:10
Attachments:
Original issue reported on code.google.com by
ian.well...@gmail.com
on 23 Oct 2013 at 11:15Attachments: