lib/access/api.rb in access-2.0.31 vs lib/access/api.rb in access-2.0.32

- old
+ new

@@ -138,11 +138,17 @@ MemberResponse.new(response) end end def member_authentication(options = {}) - request.post("/auth", "mms", options) do |response| - MemberResponse.new(response) + if options[:email] && options[:password] # 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| + MemberResponse.new(response) + end end end # Program def find_program_provisioning_method(pcid)