lib/access/api.rb in access-2.0.33 vs lib/access/api.rb in access-2.0.34
- old
+ new
@@ -138,20 +138,19 @@
MemberResponse.new(response)
end
end
def member_authentication(options = {})
- 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|
- MemberResponse.new(response)
- end
+ request.post("/auth", "mms", options) do |response|
+ MemberResponse.new(response)
end
end
+ def member_authentication_by_cvt(options = {})
+ request.get("/auth", "mms", options) do |response|
+ MemberResponse.new(response)
+ end
+ end
# Program
def find_program_provisioning_method(pcid)
request.get("/programs/#{pcid}", "mms") do |response|
ProgramResponse.new(response)
end