<div dir="ltr">Hi All,<div><br></div><div>I was wondering if anyone had any thoughts around this. I have a couple of fields I really need to save the information to repopulate the fields on a failed login. Basically, how is login.username populated in login.ftl, and can other fields be saved?</div><div><br></div><div>Thanks.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 17, 2016 at 2:19 PM, Frank Herrmann <span dir="ltr">&lt;<a href="mailto:frank.herrmann@modernizingmedicine.com" target="_blank">frank.herrmann@modernizingmedicine.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><div dir="ltr"><span style="font-size:12.8px">In the template, login.ftl, the parameter login.username is begin used to fill back in the username field after a failed login. In our custom template, I have additional fields I wound not want a user to have to refill after a failed login. Some of these fields are pre-populated via the form authenticator with context</span><span style="font-size:12.8px">.</span><span style="font-size:12.8px">form</span><span style="font-size:12.8px">().</span><span style="font-size:12.8px">setAttribute, which works fine. However, on a failed login, the login page changes and this context is lost.</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Is it possible to set additional fields to save their data during failed login?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks,</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">-Frank</div><div><br></div>-- <br><div><div dir="ltr"><div style="color:rgb(65,64,66);font-family:Lato,sans-serif;font-size:12px;line-height:12px;float:left"><span style="display:inline-block;font-weight:700;font-size:13px;color:rgb(78,38,131);text-transform:uppercase">FRANK</span> <span style="display:inline-block;font-size:13px;color:rgb(78,38,131);text-transform:uppercase">HERRMANN</span> <br><span style="display:inline-block;font-size:11px;color:rgb(176,176,176);text-transform:uppercase;line-height:18px">SOFTWARE ENGINEER</span><div style="clear:both;color:rgb(102,102,102);font-size:11px;letter-spacing:1px;line-height:4px"><p style="padding-left:1px">T: <a href="tel:561-880-2998%20x1563" value="+15618802998" target="_blank">561-880-2998 x1563</a></p><p>E:  <a href="mailto:frank.herrmann@modmed.com" target="_blank">frank.herrmann@modmed.com</a></p></div></div><br style="color:rgb(65,64,66);font-family:Lato,sans-serif;font-size:12px;line-height:12px"><br style="color:rgb(65,64,66);font-family:Lato,sans-serif;font-size:12px;line-height:12px"><div style="color:rgb(65,64,66);font-family:Lato,sans-serif;font-size:12px;line-height:12px;clear:both"><br><table border="0" cellpadding="0" cellspacing="0" width="180em" style="border-spacing:0px;border-collapse:collapse"><tbody><tr><td width="220" style="border-collapse:collapse"><a href="http://www.modmed.com/" style="color:rgb(255,210,4);outline:none" target="_blank"><img alt="[ Modernizing Medicine ]" height="66" src="http://www.modmed.com/wp-content/uploads/2015/08/mm-signature-logo.png" width="166" style="display:block;border:none;outline:none;text-decoration:none"></a><table border="0" cellpadding="0" cellspacing="0" width="95%" style="border-spacing:0px;border-collapse:collapse"><tbody><tr><td style="border-collapse:collapse"><a href="http://www.facebook.com/modernizingmedicine" style="color:rgb(255,210,4);outline:none" target="_blank"><img alt="[ Facebook ]" border="0" height="18" src="https://www.modmed.com/wp-content/uploads/2014/11/Email_Facebook_20.jpg" width="23" style="display:block;border:none;outline:none;text-decoration:none"></a></td><td width="8" style="border-collapse:collapse"><img alt="" height="1" src="http://www.modmed.com/wp-content/uploads/2015/08/blankspace.png" width="3" style="display:block;border:none;outline:none"></td><td style="border-collapse:collapse"><a href="http://www.linkedin.com/company/modernizing-medicine/" style="color:rgb(255,210,4);outline:none" target="_blank"><img alt="[ LinkedIn ]" border="0" height="18" src="https://www.modmed.com/wp-content/uploads/2014/11/Email_LinkedIn_20.jpg" width="28" style="display:block;border:none;outline:none;text-decoration:none"></a></td><td width="8" style="border-collapse:collapse"><img alt="" height="1" src="http://www.modmed.com/wp-content/uploads/2015/08/blankspace.png" width="3" style="display:block;border:none;outline:none"></td><td style="border-collapse:collapse"><a href="http://www.youtube.com/user/modernizingmedicine" style="color:rgb(255,210,4);outline:none" target="_blank"><img alt="[ YouTube ]" border="0" height="18" src="https://www.modmed.com/wp-content/uploads/2014/11/Email_YouTube_20.jpg" width="28" style="display:block;border:none;outline:none;text-decoration:none"></a></td><td width="8" style="border-collapse:collapse"><img alt="" height="1" src="http://www.modmed.com/wp-content/uploads/2015/08/blankspace.png" width="3" style="display:block;border:none;outline:none"></td><td style="border-collapse:collapse"><a href="https://twitter.com/modmed_EMA" style="color:rgb(255,210,4);outline:none" target="_blank"><img alt="[ Twitter ]" border="0" height="18" src="https://www.modmed.com/wp-content/uploads/2014/11/Email_Twitter_20.jpg" width="28" style="display:block;border:none;outline:none;text-decoration:none"></a></td><td width="8" style="border-collapse:collapse"><img alt="" height="1" src="http://www.modmed.com/wp-content/uploads/2015/08/blankspace.png" width="3" style="display:block;border:none;outline:none"></td><td style="border-collapse:collapse"><a href="http://www.modmed.com/BlogBeyondEMR" style="color:rgb(255,210,4);outline:none" target="_blank"><img alt="[ Blog ]" border="0" height="18" src="https://www.modmed.com/wp-content/uploads/2014/11/Email_Blog_20.jpg" width="25" style="display:block;border:none;outline:none;text-decoration:none"></a></td><td width="8" style="border-collapse:collapse"><img alt="" height="1" src="http://www.modmed.com/wp-content/uploads/2015/08/blankspace.png" width="3" style="display:block;border:none;outline:none"></td><td style="border-collapse:collapse"><a href="http://instagram.com/modernizing_medicine" style="color:rgb(255,210,4);outline:none" target="_blank"><img alt="[ Instagram ]" border="0" height="18" src="https://www.modmed.com/wp-content/uploads/2014/11/Email_Instagam_20.jpg" width="23" style="display:block;border:none;outline:none;text-decoration:none"></a></td></tr></tbody></table></td></tr></tbody></table></div><br style="color:rgb(65,64,66);font-family:Lato,sans-serif;font-size:12px;line-height:12px"><div style="color:rgb(65,64,66);font-family:Lato,sans-serif;font-size:12px;line-height:12px;clear:both"></div></div></div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div style="color:rgb(65,64,66);font-family:Lato,sans-serif;font-size:12px;line-height:12px;float:left"><span style="display:inline-block;font-weight:700;font-size:13px;color:rgb(78,38,131);text-transform:uppercase">FRANK</span> <span style="display:inline-block;font-size:13px;color:rgb(78,38,131);text-transform:uppercase">HERRMANN</span> <br><span style="display:inline-block;font-size:11px;color:rgb(176,176,176);text-transform:uppercase;line-height:18px">SOFTWARE ENGINEER</span><div style="clear:both;color:rgb(102,102,102);font-size:11px;letter-spacing:1px;line-height:4px"><p style="padding-left:1px">T: 561-880-2998 x1563</p><p>E:  <a href="mailto:frank.herrmann@modmed.com" target="_blank">frank.herrmann@modmed.com</a></p></div></div><br style="color:rgb(65,64,66);font-family:Lato,sans-serif;font-size:12px;line-height:12px"><br style="color:rgb(65,64,66);font-family:Lato,sans-serif;font-size:12px;line-height:12px"><div style="color:rgb(65,64,66);font-family:Lato,sans-serif;font-size:12px;line-height:12px;clear:both"><br><table border="0" cellpadding="0" cellspacing="0" width="180em" style="border-spacing:0px;border-collapse:collapse"><tbody><tr><td width="220" style="border-collapse:collapse"><a href="http://www.modmed.com/" style="color:rgb(255,210,4);outline:none" target="_blank"><img alt="[ Modernizing Medicine ]" height="66" src="http://www.modmed.com/wp-content/uploads/2015/08/mm-signature-logo.png" width="166" style="display:block;border:none;outline:none;text-decoration:none"></a><table border="0" cellpadding="0" cellspacing="0" width="95%" style="border-spacing:0px;border-collapse:collapse"><tbody><tr><td style="border-collapse:collapse"><a href="http://www.facebook.com/modernizingmedicine" style="color:rgb(255,210,4);outline:none" target="_blank"><img alt="[ Facebook ]" border="0" height="18" src="https://www.modmed.com/wp-content/uploads/2014/11/Email_Facebook_20.jpg" width="23" style="display:block;border:none;outline:none;text-decoration:none"></a></td><td width="8" style="border-collapse:collapse"><img alt="" height="1" src="http://www.modmed.com/wp-content/uploads/2015/08/blankspace.png" width="3" style="display:block;border:none;outline:none"></td><td style="border-collapse:collapse"><a href="http://www.linkedin.com/company/modernizing-medicine/" style="color:rgb(255,210,4);outline:none" target="_blank"><img alt="[ LinkedIn ]" border="0" height="18" src="https://www.modmed.com/wp-content/uploads/2014/11/Email_LinkedIn_20.jpg" width="28" style="display:block;border:none;outline:none;text-decoration:none"></a></td><td width="8" style="border-collapse:collapse"><img alt="" height="1" src="http://www.modmed.com/wp-content/uploads/2015/08/blankspace.png" width="3" style="display:block;border:none;outline:none"></td><td style="border-collapse:collapse"><a href="http://www.youtube.com/user/modernizingmedicine" style="color:rgb(255,210,4);outline:none" target="_blank"><img alt="[ YouTube ]" border="0" height="18" src="https://www.modmed.com/wp-content/uploads/2014/11/Email_YouTube_20.jpg" width="28" style="display:block;border:none;outline:none;text-decoration:none"></a></td><td width="8" style="border-collapse:collapse"><img alt="" height="1" src="http://www.modmed.com/wp-content/uploads/2015/08/blankspace.png" width="3" style="display:block;border:none;outline:none"></td><td style="border-collapse:collapse"><a href="https://twitter.com/modmed_EMA" style="color:rgb(255,210,4);outline:none" target="_blank"><img alt="[ Twitter ]" border="0" height="18" src="https://www.modmed.com/wp-content/uploads/2014/11/Email_Twitter_20.jpg" width="28" style="display:block;border:none;outline:none;text-decoration:none"></a></td><td width="8" style="border-collapse:collapse"><img alt="" height="1" src="http://www.modmed.com/wp-content/uploads/2015/08/blankspace.png" width="3" style="display:block;border:none;outline:none"></td><td style="border-collapse:collapse"><a href="http://www.modmed.com/BlogBeyondEMR" style="color:rgb(255,210,4);outline:none" target="_blank"><img alt="[ Blog ]" border="0" height="18" src="https://www.modmed.com/wp-content/uploads/2014/11/Email_Blog_20.jpg" width="25" style="display:block;border:none;outline:none;text-decoration:none"></a></td><td width="8" style="border-collapse:collapse"><img alt="" height="1" src="http://www.modmed.com/wp-content/uploads/2015/08/blankspace.png" width="3" style="display:block;border:none;outline:none"></td><td style="border-collapse:collapse"><a href="http://instagram.com/modernizing_medicine" style="color:rgb(255,210,4);outline:none" target="_blank"><img alt="[ Instagram ]" border="0" height="18" src="https://www.modmed.com/wp-content/uploads/2014/11/Email_Instagam_20.jpg" width="23" style="display:block;border:none;outline:none;text-decoration:none"></a></td></tr></tbody></table></td></tr></tbody></table></div><br style="color:rgb(65,64,66);font-family:Lato,sans-serif;font-size:12px;line-height:12px"><div style="color:rgb(65,64,66);font-family:Lato,sans-serif;font-size:12px;line-height:12px;clear:both"></div></div></div>
</div>