check token
This commit is contained in:
@@ -64,7 +64,8 @@ class MyAesCrypt
|
||||
shop_json["data"].each do |j|
|
||||
if j["lookup"] == from
|
||||
# add [0...44] for production cloud for remove \n
|
||||
if(j["value"]["key"] == token)
|
||||
if(j["value"]["key"].gsub(/\s+/, "") == token)
|
||||
puts token
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user