Hello Team,
I believe there is a bug in the AuthenticationManagerBean -> authenticate(Credentials credentials) method, if the credentials used is of type LoginPasswordCredentials the authenticate method always throws a LoginException, note that the login(Credentials credentials) in the same bean works fine though.you can reproduce the bug by setting cuba.web.rememberMeEnabled = false and override the doLogin(Credentials credentials) method in the login page (inject the AuthenticationService) to be as following:
protected void doLogin(Credentials credentials) throws LoginException {
if (credentials instanceof AbstractClientCredentials) {
((AbstractClientCredentials) credentials).setOverrideLocale(localesSelect.isVisible());
}
authenticationService.authenticate(credentials);
connection.login(credentials);
}