Instead of saving authName in the mkws structure, publish it to the
[mkws-moved-to-github.git] / src / mkws-core.js
index 7df143a..a485f34 100644 (file)
@@ -294,6 +294,11 @@ if (mkws_config == null || typeof mkws_config != 'object') {
 
            log("Service proxy auth successfully done");
            mkws.authenticated = true;
+           var authName = $(data).find("displayName").text();
+           for (var teamName in mkws.teams) {
+               mkws.teams[teamName].queue("authenticated").publish(authName);
+           }
+
            runAutoSearches();
        });
     }