From 122ac84a18c5184090571b40e1e78d7eb8bc63de Mon Sep 17 00:00:00 2001 From: Ollie Terrance Date: Wed, 28 Oct 2020 20:52:30 +0000 Subject: [PATCH] Use Live login for usernames, SOAP for emails --- skpy/conn.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skpy/conn.py b/skpy/conn.py index 0455e84..ab3eef7 100644 --- a/skpy/conn.py +++ b/skpy/conn.py @@ -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): """