Skip to content

Commit

Permalink
Correctly check login failed
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite committed Nov 7, 2012
1 parent 9602435 commit 683e229
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/msn/nexus.rb
Expand Up @@ -52,8 +52,8 @@ def get_binary_secret(username, password)


# Check invalid login # Check invalid login
fault = xml.xpath("//S:Fault/faultstring") fault = xml.xpath("//S:Fault/faultstring")
if fault if fault.length > 0
raise Msn::AuthenticationError.new(fault.text) raise Msn::AuthenticationError.new(fault.first.text)
end end


rstr = xml.xpath "//wst:RequestSecurityTokenResponse[wsp:AppliesTo/wsa:EndpointReference/wsa:Address='messengerclear.live.com']", Namespaces rstr = xml.xpath "//wst:RequestSecurityTokenResponse[wsp:AppliesTo/wsa:EndpointReference/wsa:Address='messengerclear.live.com']", Namespaces
Expand Down

0 comments on commit 683e229

Please sign in to comment.