Commit 444fbe89 authored by ptajane's avatar ptajane

- Add new option 3 for device security in ENTERPRISE table

3 - Admin Approval (More than one device tries to login then send approval to admin, if admin approves then only allow to login.)

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@203655 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 01f8aca5
...@@ -69,7 +69,7 @@ public class UserDevicePosJB extends ValidatorEJB ...@@ -69,7 +69,7 @@ public class UserDevicePosJB extends ValidatorEJB
int recExistCount = Integer.valueOf(recExist); int recExistCount = Integer.valueOf(recExist);
System.out.println("In UserDevicePosJB executePostSave USER_IP exist record count : ["+recExistCount+"]"); System.out.println("In UserDevicePosJB executePostSave USER_IP exist record count : ["+recExistCount+"]");
if( recExistCount == 0 ) if( recExistCount == 0 && !"".equals(requsetedIP) )
{ {
String sql = "INSERT INTO USER_IP (USER_ID, IP) VALUES('"+userID+"','"+requsetedIP+"')"; String sql = "INSERT INTO USER_IP (USER_ID, IP) VALUES('"+userID+"','"+requsetedIP+"')";
preparedStatement = connection.prepareStatement(sql); preparedStatement = connection.prepareStatement(sql);
...@@ -95,7 +95,7 @@ public class UserDevicePosJB extends ValidatorEJB ...@@ -95,7 +95,7 @@ public class UserDevicePosJB extends ValidatorEJB
int recordExistCount = Integer.valueOf(recordExist); int recordExistCount = Integer.valueOf(recordExist);
System.out.println("In UserDevicePosJB executePostSave USER_GEOPOS exist record count : ["+recordExistCount+"]"); System.out.println("In UserDevicePosJB executePostSave USER_GEOPOS exist record count : ["+recordExistCount+"]");
if( recordExistCount == 0 ) if( recordExistCount == 0 && !"".equals(geopos) )
{ {
String sql = "INSERT INTO USER_GEOPOS (USER_ID, GEOPOS) VALUES('"+userID+"','"+geopos+"')"; String sql = "INSERT INTO USER_GEOPOS (USER_ID, GEOPOS) VALUES('"+userID+"','"+geopos+"')";
preparedStatement = connection.prepareStatement(sql); preparedStatement = connection.prepareStatement(sql);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment