Permalink
Browse files

allow domain in username

  • Loading branch information...
1 parent 8867b00 commit 459eb08daa7b786f799290d1a3c94162ae59a5a7 @janx committed Feb 2, 2012
Showing with 3 additions and 2 deletions.
  1. +1 −1 lib/omniauth-broadworks/version.rb
  2. +2 −1 lib/omniauth/strategies/broadworks.rb
@@ -1,5 +1,5 @@
module OmniAuth
module Broadworks
- VERSION = "1.0.0"
+ VERSION = "1.0.1"
end
end
@@ -30,7 +30,8 @@ def api_uri
end
def username
- "#{request['username']}@#{options.domain}" if request['username']
+ return unless request['username']
+ request['username'].index('@') ? request['username'] : [request['username'], options.domain].join('@')
end
def xml_response

0 comments on commit 459eb08

Please sign in to comment.