From: Mike Taylor Date: Thu, 17 Apr 2014 16:01:27 +0000 (+0100) Subject: Publish identity realm, as well as displayName, in "authenticated" events. X-Git-Tag: 1.0.0~907^2~6 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=e69e9ba6777cd0186c58db2699e6419449d3c22a;p=mkws-moved-to-github.git Publish identity realm, as well as displayName, in "authenticated" events. --- diff --git a/src/mkws-core.js b/src/mkws-core.js index 07a4b2d..d6433f4 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -299,8 +299,10 @@ mkws.pagerNext = function(tname) { log("Service proxy auth successfully done"); mkws.authenticated = true; var authName = $(data).find("displayName").text(); + // You'd think there would be a better way to do this: + var realm = $(data).find("realm:not(realmAttributes realm)").text(); for (var teamName in mkws.teams) { - mkws.teams[teamName].queue("authenticated").publish(authName); + mkws.teams[teamName].queue("authenticated").publish(authName, realm); } runAutoSearches();