DIsable browser saving username and password

Hi,

On successfully or unsuccessfully login, login page saves username and password prompted by browser.
I don’t want to save username and password i had added autocomplete = ‘false’ still browser is saving credentials.
First time when page is open usernameField.focus() is called but when we refresh the browser usernameField.focus() is not call

Any solution for this.

Thank you in advance

Hello!

Could you clarify which browser and its version do you use?

After refreshing the page screen preserves its state and it is not reopened. If you want to handle page refreshing you should subscribe in your login screen to UIRefreshEvent

@EventListener
protected void onPageRefresh(UIRefreshEvent event) {
    // focus your field
}

thanks