lib/access/api.rb in access-2.0.32 vs lib/access/api.rb in access-2.0.33
- old
+ new
@@ -138,10 +138,10 @@
MemberResponse.new(response)
end
end
def member_authentication(options = {})
- if options[:email] && options[:password] # email/pass does not respond to get
+ if !options[:email].nil? && !options[:password].nil? # email/pass does not respond to get
request.post("/auth", "mms", options) do |response|
MemberResponse.new(response)
end
else # cvt does not respond to post
request.get("/auth", "mms", options) do |response|