We are currently using AD or SAML accounts only with our implementation of Laserfiche. We occasionally receive an email from end users saying that they have tried to click the 'Forgot Password' link on the LFDSSTS login page, but never receive the recovery email. Since they shouldn't be using that link, we would like an option on the LFDSSTS configuration page to hide it, similar to hiding the Laserfiche or Windows Authentication.
Question
Question
Feature Request: Hide 'Forgot Password' on LFDSSTS page
Replies
I agree settings like this would be nice to have on the STS page.
As a workaround, we have modified the STS login.cshtml file on a couple of servers. You have to redo the changes after upgrades and such, but you could hide that link.
C:\Program Files\Laserfiche\Directory Server\Web\WebSTS\Views\Home
How are you hiding the link? I have tried commenting out the link in the Login.cshtml, but it causes other parts of the login page to not display correctly.
This is what we have in that file to block it.
<!--password-->
<div class="form-entry password-entry" id="passwordGroup">
<label id="PasswordStr" style="float: left;"></label>
<!--forgot password link-->
<div class="form-entry" style="text-align: right; margin-bottom:10px; font-size:10px; display:none;" id="forgotPasswordSection">
<a href="#" class="forgot" onclick="forgotPassword()" id="ForgotPasswordStr"></a>
</div>
<input class="form-entry-value" type="password" id="passwordField" name="passwordField" autocomplete="off" tabindex="3" />
</div>
<!--login button-->
I haven't actually hidden that link before; we just edit the file to add instructions to the page and run some additional validation scripts.
I believe the "display:none;" style Angela mentioned is what you need.
There's some JavaScript tied to that field, so commenting it out entirely might be causing JavaScript errors.
Looks like I had a mismatch of LFDS versions in our test and production environment. Getting them on the same version fixed the issue I was seeing.
Here is a video that shows what edits are needed. Thank you Angela!