Commit 61273272 by liyijie

Fix syntex error

parent e41b320d
...@@ -82,7 +82,7 @@ module RailsApiAuthentication ...@@ -82,7 +82,7 @@ module RailsApiAuthentication
end end
def valid? name, valid_code def valid? name, valid_code
@valid_key.blank? || (valid_code.present? && valid_code == $redis.get("#{self}::#{name})) @valid_key.blank? || (valid_code.present? && valid_code == $redis.get("#{self}::#{name}"))
end end
def auth(request) def auth(request)
......
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