From f3833cf20cf86e187c9b3a7649a972a06c1e124f Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Thu, 24 Sep 2015 16:01:01 +0200 Subject: [PATCH] Closedown --- plugins/NewTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/NewTest.java b/plugins/NewTest.java index 62dad3a..ad3c647 100644 --- a/plugins/NewTest.java +++ b/plugins/NewTest.java @@ -498,12 +498,13 @@ public class NewTest extends javax.swing.JPanel { return false; } if (sType == TypeOfNewFile.Test){ + //check user name on LDAP if(!(txtContactName.getText().matches(ALLOWED_CHARSET3) )){ SwingUtils.showMessage(this, "checkDataFields()", "Please provide a valid user name"); return false; - } else{ //check if the user name is in LDAP *FOR THE MOMENT IT DOES NOT WORK* + } else{ if ( !userExists(txtContactName.getText())){ OptionResult ret = SwingUtils.showOption(this, "checkDataFields()", "Could not find user name "+txtContactName.getText() + "\nDo you want to continue generating the test?", OptionType.YesNoCancel);