Jump to content

[Share]Avoid stealing accounts


Recommended Posts

I dont think its useful,gms can check logs and its useless for a player even if he knows the ip that stole him >_>.

gms can't read logs >.>

 

do you read all logs if you are admin ?

Link to comment
Share on other sites

me no work this code? You work? how i paste all right but don't work.

ohh, thanks for feedback

 

Index: LoginController.java

		if (ok)
		{
			client.setAccessLevel(access);
			client.setLastServer(lastServer);
-				statement = con.prepareStatement("UPDATE accounts SET lastactive=?, lastIP=? WHERE login=?");
+				statement = con.prepareStatement("UPDATE accounts SET lastactive=? WHERE login=?");
			statement.setLong(1, System.currentTimeMillis());
-				statement.setString(2, address.getHostAddress());
-				statement.setString(3, user);
+				statement.setString(2, user)
			statement.execute();
			statement.close();
		}

Link to comment
Share on other sites

ohh, thanks for feedback

 

Index: LoginController.java

		if (ok)
		{
			client.setAccessLevel(access);
			client.setLastServer(lastServer);
-				statement = con.prepareStatement("UPDATE accounts SET lastactive=?, lastIP=? WHERE login=?");
+				statement = con.prepareStatement("UPDATE accounts SET lastactive=? WHERE login=?");
			statement.setLong(1, System.currentTimeMillis());
-				statement.setString(2, address.getHostAddress());
-				statement.setString(3, user);
+				statement.setString(2, user)
			statement.execute();
			statement.close();
		}

 

 

Ok now i try and tell you :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...