Fix ENV_HASH not working correctly.
This commit is contained in:
@@ -64,6 +64,7 @@ module Players
|
||||
|
||||
def self.authorized?(username, pass)
|
||||
digest = XXhash.xxh32(pass, ENV_HASH["SALT"])
|
||||
Logman.log "Authorized: #{username} & #{digest}\n"
|
||||
player = self[username]
|
||||
player && player[:digest].to_i == digest.to_i ? player : false
|
||||
end
|
||||
|
Reference in New Issue
Block a user