fix userlist sorting; fix idiot-check

This commit is contained in:
jomo
2014-06-29 06:36:55 +02:00
parent 018866d209
commit ed2feab298
2 changed files with 3 additions and 4 deletions

View File

@@ -89,7 +89,7 @@ class User < ActiveRecord::Base
payload = { agent: { name: "Minecraft", version: 1 }, username: self.email, password: password }
begin
response = http.post(uri.request_uri, payload.to_json, "Content-Type" => "application/json").code
if response.code == "200"
if response == "200"
return true
else
payload[:username] = self.ign