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

Question

Question

Disable auto focus on username field at Directory Server login page

asked on December 6, 2021

Modern browsers are no longer allowing autofocusing on input elements in cross-origin subframes (iFrames).

We have a customer who had a working cross-origin iFrame deployment which points to an STS Laserfiche repository for their intranet employees to use.

They can no longer login to Laserfiche in the iFrame because there is a focus event on the username field on load, which causes modern browsers to prevent display of the site.

Can this be turned off? It should just be a line of javascript somewhere that calls the focus() method.

0 0

Replies

replied on December 6, 2021 Show version history

If you're very sure that's the issue, the file you'll need to modify is "C:\Program Files\Laserfiche\Directory Server\Web\WebSTS\Views\Home\Login.cshtml", potentially under a function called "loadLocalVars()" around line 665 (in LFDSSTS 11).

Obviously, make any modifications at your own risk and make a backup copy of the original file first. Please do report back with any relevant findings. Bonus points for making the function iFrame-aware.

1 0
replied on December 7, 2021

Thank you! I found the function and we will begin by just trying to comment the focus calls out to verify that resolves the issue.

The message from Chrome is pretty clear that they do not want us focusing on an input.

Users not getting a focus event at the login page will likely be another issue so they may need to make it iFrame aware.

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

Sign in to reply to this post.