TavernerPOS - Source Code

Clone: 

git clone http://www.librarysmith.co.uk/tavernerPOS

 

viewgit/viewgit/inc/functions.php:49 Function create_function() is deprecated [8192]

Index » tavernerPOS : Commitdiff 10b589

Fix Secret Key length being fixed to 4 chars in UserForm.java. Now uses TerminalConfig.getDefaultPassLen()

Matt Smith [15-10-28 14:27]
Fix Secret Key length being fixed to 4 chars in UserForm.java. Now uses TerminalConfig.getDefaultPassLen()
diff --git a/.classpath b/.classpath
deleted file mode 100644
index fd969f9..0000000
--- a/.classpath
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-	<classpathentry including="**/*.java" kind="src" output="target/classes" path="src">
-		<attributes>
-			<attribute name="optional" value="true"/>
-			<attribute name="maven.pomderived" value="true"/>
-		</attributes>
-	</classpathentry>
-	<classpathentry including="**/*.java" kind="src" output="target/classes" path="resources"/>
-	<classpathentry kind="src" path="i18n"/>
-	<classpathentry kind="src" path="config"/>
-	<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
-		<attributes>
-			<attribute name="maven.pomderived" value="true"/>
-		</attributes>
-	</classpathentry>
-	<classpathentry excluding="**" kind="src" output="target/classes" path="filters">
-		<attributes>
-			<attribute name="maven.pomderived" value="true"/>
-		</attributes>
-	</classpathentry>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
-	<classpathentry kind="output" path="target/classes"/>
-</classpath>
diff --git a/src/com/floreantpos/ui/forms/UserForm.java b/src/com/floreantpos/ui/forms/UserForm.java
old mode 100644
new mode 100755
index 75c98a4..c764d2d
--- a/src/com/floreantpos/ui/forms/UserForm.java
+++ b/src/com/floreantpos/ui/forms/UserForm.java
@@ -16,6 +16,7 @@ import net.miginfocom.swing.MigLayout;

 import com.floreantpos.Messages;
 import com.floreantpos.PosException;
+import com.floreantpos.config.TerminalConfig;
 import com.floreantpos.model.User;
 import com.floreantpos.model.UserType;
 import com.floreantpos.model.dao.UserDAO;
@@ -61,9 +62,9 @@ public class UserForm extends BeanEditor {
 		jLabel4 = new javax.swing.JLabel();
 		jLabel9 = new javax.swing.JLabel();
 		jLabel10 = new javax.swing.JLabel();
-		tfPassword1 = new javax.swing.JPasswordField(new FixedLengthDocument(4), "", 10); //$NON-NLS-1$
+		tfPassword1 = new javax.swing.JPasswordField(new FixedLengthDocument(TerminalConfig.getDefaultPassLen()), "", 10); //$NON-NLS-1$
 		tfPassword1.setColumns(16);
-		tfPassword2 = new javax.swing.JPasswordField(new FixedLengthDocument(4), "", 10); //$NON-NLS-1$
+		tfPassword2 = new javax.swing.JPasswordField(new FixedLengthDocument(TerminalConfig.getDefaultPassLen()), "", 10); //$NON-NLS-1$
 		tfPassword2.setColumns(16);
 		tfId = new FixedLengthTextField();
 		tfSsn = new FixedLengthTextField();

Add comment
These comments are moderated so so won't be published until reviewed.