mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-04 12:17:41 +08:00
PL-8236 Invalid handling of empty login on login screen
This commit is contained in:
parent
98d5948b77
commit
77cdd85ed1
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user