Password Field value should be clear after refreshing the page

I want to clear the value of the password field in login screen on clicking of browsers refresh page.

i tired using passwordField.clear(); in onInit method but ir seems like on refresh click the onInint method is not getting executed

help me with this problem

If you want to disable default values (admin/admin) in login screen you should:

  • For Jmix 1.5.0, remove these properties:
    ui.login.defaultUsername = admin
    ui.login.defaultPassword = admin
    
  • For Jmix 1.4.4 and below, set <disabled>:
    jmix.ui.login.default-username=<disabled>
    jmix.ui.login.default-password=<disabled>
    

To handle refreshing the page, subscribe to UIRefreshEvent in your login screen:

@EventListener
protected void onPageRefresh(UIRefreshEvent event) {
    // do smth
}

Thanks