Password forgot / sent extra parameters
-
Hi!
I was wondering if the "forgot" action api call by the page "passwordForgot.ftl" could have some extra parameters.
I have a few get parameters to send to the password sent page.
I tried a hidden input but it doesn't appear in the link afterwards.Can someone provide any help on that matter?
<form action="forgot" method="POST"> [@helpers.oauthHiddenFields/] <input type="hidden" id="echinoparam" name="echinoparam" value="value" /> [@helpers.input type="text" name="email" id="email" autocapitalize="none" autofocus=true autocomplete="on" autocorrect="off" label=theme.message('email') leftAddon="user" required=true/] [@helpers.button icon="arrow-right" text=theme.message('submit')/] </form>
-
Not the best way of doing that but found that you could inject some stuff in metaData.device.name
<input type="hidden" name="metaData.device.name" value="_${request.getParameter('someparam')}" />
I can later retrieve it and parse it and assign it
[#assign someparam=request.getParameter("metaData.device.name")?split("_")?last]