Skip to content

Commit

Permalink
Use Live login for usernames, SOAP for emails
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrance committed Oct 28, 2020
1 parent 0d5ce87 commit 122ac84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion skpy/conn.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,8 @@ def setUserPwd(self, user, pwd):
user (str): username or email address of the connecting account
pwd (str): password of the connecting account
"""
self.skypeTokenClosure(self.soapLogin, user, pwd)
login = self.soapLogin if "@" in user else self.liveLogin
self.skypeTokenClosure(login, user, pwd)

def liveLogin(self, user, pwd):
"""
Expand Down

0 comments on commit 122ac84

Please sign in to comment.