From 81a1ffa84f58810146edf15744d541b2db8bf7b5 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Wed, 7 Mar 2007 08:26:20 +0000 Subject: [PATCH] BF [ 1674663 ] Adempiere allows you to login using a user with no access https://sourceforge.net/tracker/index.php?func=detail&aid=1674663&group_id=176962&atid=879332 --- client/src/org/compiere/apps/ALogin.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/src/org/compiere/apps/ALogin.java b/client/src/org/compiere/apps/ALogin.java index 9c46f9e5c8..c6cac03cbc 100644 --- a/client/src/org/compiere/apps/ALogin.java +++ b/client/src/org/compiere/apps/ALogin.java @@ -446,8 +446,11 @@ public final class ALogin extends CDialog else { setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); - m_okPressed = true; - defaultsOK(); // disposes + m_okPressed = true; + // Dispose if OK - teo_sarca [ 1674663 ] + if(!defaultsOK()) + m_okPressed = false; + setCursor(Cursor.getDefaultCursor()); } } else if (e.getActionCommand().equals(ConfirmPanel.A_CANCEL))