diff options
author | Eion Robb <eion@robbmob.com> | 2015-01-28 02:59:35 +0300 |
---|---|---|
committer | Eion Robb <eion@robbmob.com> | 2015-01-28 02:59:35 +0300 |
commit | 1d5ff02e0e5ac7171ab0a86167df46da38c3f972 (patch) | |
tree | e85d87e09cce79de2b8d56258694e7c85563dbba /skypeweb/libskypeweb.c | |
parent | 2027e2a995329bfeab367748e2bb2671d0e7c9fc (diff) |
SkypeWeb : Add support for Microsoft (oauth) logins
Diffstat (limited to 'skypeweb/libskypeweb.c')
-rw-r--r-- | skypeweb/libskypeweb.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/skypeweb/libskypeweb.c b/skypeweb/libskypeweb.c index b11d591..47b91d9 100644 --- a/skypeweb/libskypeweb.c +++ b/skypeweb/libskypeweb.c @@ -270,7 +270,12 @@ skypeweb_login(PurpleAccount *account) sa->sent_messages_hash = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL);
sa->waiting_conns = g_queue_new();
- skypeweb_begin_web_login(sa);
+ if(strchr(sa->username, '@')) {
+ //Has an email address for a username, probably a microsoft account?
+ skypeweb_begin_oauth_login(sa);
+ } else {
+ skypeweb_begin_web_login(sa);
+ }
}
static void
|