Forum Discussion
customize APM login page with forgot password link
All,
Trying to figure out how to add a line in the standard APM login screen so that below the login fields, there is a forgot password link. I figured I would go to Customization-Access Policy--Common, but dont know where to look after that or where to added the
- MarvinCirrocumulus
This option hides it and doesnt consume space on the logon page style="display:none;"
- MarvinCirrocumulus
fixed it already use
<form id="ForgotPassword" action="https://forgotpasswordurl" method="GET" style="display:none;">
<input name="CommandName" value="Execute" type="hidden" style="display:none;">
<input name="UserName" value="%{session.logon.last.username}" type="hidden" style="display:none;">
</form>
- MarvinCirrocumulus
<tr> <td colspan=2 class="credentials_table_unified_cell"> <a href="javascript:document.getElementById('ForgotPassword').submit()"> Forgot My Password </a> </td> </tr> <tr id="submit_row"> <? ?> </tr> <? $vParam = $_GET['v']; if (!empty($vParam) && ($vParam == "v2")) { ?> <tr> <td class="credentials_table_unified_cell" colspan="2"> <a id="v2_original_url" href="/">%[logon_original_url]</a> </td> </tr> <? } ?> <tr> <td colspan=2 id="credentials_table_footer" ></td> </tr> </table> <input type=hidden name="vhost" value="standard"> </form> <form id="ForgotPassword" action="https://forgotpasswordurl" method="GET"> <input name="CommandName" value="Execute" type="hidden"> <input name="UserName" value="%{session.logon.last.username}" type="hidden"> </form>
- The-messengerCirrostratus
Latching on to your discussion - this looks like a solution for a Forgot my Password link alone. Can we provide that service, integration into AD to allow someone to reset their password?
Hello,
To complete the answers, when you are in the logon.inc file, you can add the following code just where there is the submit button :
//------------------------------------------------------------ ?>
- MarvinCirrocumulus
Hi Yann, hope you are doing fine these days, first of all thanks for sharing the code, now I noticed that your code was gone so I reposted it below. I have to say the Forgot Password link is working correctly however it causes the logon page to scroll over several pages.
- MarvinCirrocumulus
There are two HTML forms places below eachother making the logon page crossing two pages, do you have any idea how to solve this?
- amolariCirrostratus
If you want it below, you have to edit the HTML file (customization advanced). Through the "standard"/general customization, you can only add it above the login field (in the Logon page agent, you can do it too).
- Michael_JenkinsCirrostratus
You can add it in the customization section.
>>Access Policy
>>Customization
>> Change Edit Mode to Advanced.Advanced
Then you can edit the logon page found down the line from Access Policies >> [Profile Name] >> Access Policy >> Logon Pages >> Logon Page (logon page name) >> login.inc.
There's an example in the APM Customization document (it talks about adding an image, but could be used to add something different as well.)
Hope this helps.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com