• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
FusionAuth
  • Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login

Password forgot / sent extra parameters

Scheduled Pinned Locked Moved
General Discussion
1
2
2.1k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E
    echino
    last edited by 28 Oct 2024, 15:41

    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>
    
    1 Reply Last reply Reply Quote 0
    • E
      echino
      last edited by 30 Oct 2024, 12:36

      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]
      
      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post