Skip to content
Browse files

Added support for Google Apps hosted domains

Signed-off-by: John Nunemaker <nunemaker@gmail.com>
  • Loading branch information...
1 parent b537d21 commit c17b01caa306aa4cb7864602657dd5a534b6dc0b Mike Fischer committed with Jan 15, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/google/base.rb
View
3 lib/google/base.rb
@@ -96,6 +96,7 @@ def login
url = URI.parse(LOGIN_URL)
req = Net::HTTP::Post.new(url.request_uri)
req.set_form_data({
+ 'accountType' => 'HOSTED_OR_GOOGLE',
'Email' => @email,
'Passwd' => @password,
'source' => SOURCE,
@@ -155,4 +156,4 @@ def extract_sid(body)
matches.nil? ? nil : matches[0].gsub('SID=', '')
end
end
-end
+end

0 comments on commit c17b01c

Please sign in to comment.
Something went wrong with that request. Please try again.