You are viewing limited content. For full access, please sign in.

Question

Question

Feature Request: Hide 'Forgot Password' on LFDSSTS page

asked on November 13, 2023

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.

4 0

Replies

replied on November 13, 2023

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

0 0
replied on November 13, 2023

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.

0 0
replied on November 13, 2023

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-->

2 0
replied on November 13, 2023 Show version history

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.

0 0
replied on November 13, 2023

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.

1 0
replied on November 22, 2023 Show version history

Here is a video that shows what edits are needed. Thank you Angela!

2 0
You are not allowed to follow up in this post.

Sign in to reply to this post.