PL-8236 Invalid handling of empty login on login screen

This commit is contained in:
Yuriy Artamonov 2016-11-21 11:11:53 +04:00
parent 98d5948b77
commit 77cdd85ed1

View File

@ -319,7 +319,7 @@ public class AppLoginWindow extends AbstractWindow implements Window.TopLevelWin
App app = App.getInstance();
Connection connection = app.getConnection();
if (connection.isConnected()) {
if (connection.isAuthenticated()) {
if (webConfig.getRememberMeEnabled()) {
if (Boolean.TRUE.equals(rememberMeCheckBox.getValue())) {
if (!loginByRememberMe) {
@ -362,6 +362,7 @@ public class AppLoginWindow extends AbstractWindow implements Window.TopLevelWin
if (StringUtils.isEmpty(login) || StringUtils.isEmpty(password)) {
showNotification(messages.getMainMessage("loginWindow.emptyLoginOrPassword"), NotificationType.WARNING);
return;
}
App app = App.getInstance();