-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
7
-
Problem
customize the login page presented by Crowd to no longer display the "Forgot your password?" link, as it's causing confusion for their end-users.
Suggestion
Add the ability to hide it in the > Look and feel page.
Workaround
Adding a custom JavaScript into the login.jsp can help to hide the password reset link as a workaround:
- Locate and backup <crowd-install>/crowd-webapp/console/login.jsp
- Modify the login.jsp and add the following script into the <head> section
<script> window.addEventListener("load", function() { document.querySelector("a[href='#/forgot-password']").style.display = "none"; }); </script>
- Save the file
- Refresh Crowd's login page to see the change
Crowd restart is not required for the change to take effect
- is cloned by
-
KRAK-4706 Failed to load
[CWD-5703] Add the ability to hide "Forgot your password?" link in the login page.
Support reference count | Original: 6 | New: 7 |
Support reference count | New: 6 |
Description |
Original:
h4. Problem
customize the login page presented by Crowd to no longer display the "Forgot your password?" link, as it's causing confusion for their end-users. h4. Suggestion Add the ability to hide it in the !https://confluence.atlassian.com/doc/files/747833194/747833195/2/1517274813281/cog.png|width=16! > *Look and feel* page. |
New:
h4. Problem
customize the login page presented by Crowd to no longer display the "Forgot your password?" link, as it's causing confusion for their end-users. h4. Suggestion Add the ability to hide it in the !https://confluence.atlassian.com/doc/files/747833194/747833195/2/1517274813281/cog.png|width=16! > *Look and feel* page. h4. Workaround [Adding a custom JavaScript|https://confluence.atlassian.com/crowdkb/how-to-add-custom-javascript-code-to-crowd-webapp-947191626.html] into the {{*login.jsp*}} can help to hide the password reset link as a workaround: # Locate and backup {{<crowd-install>/crowd-webapp/console/login.jsp}} # Modify the {{*login.jsp*}} and add the following script into the {{<head>}} section {code} <script> window.addEventListener("load", function() { document.querySelector("a[href='#/forgot-password']").style.display = "none"; }); </script> {code} # Save the file # Refresh Crowd's login page to see the change (i) Crowd restart is not required for the change to take effect |
Remote Link | New: This issue links to "KRAK-4706 (Current JIRA)" [ 646443 ] |