2013-07-17 15:46:59 +02:00
|
|
|
/* Watch login and logout events */
|
|
|
|
|
|
|
|
navigator.id.watch({
|
|
|
|
loggedInUser: null,
|
|
|
|
onlogin: function(assertion) {
|
2013-09-30 16:37:15 +02:00
|
|
|
// POST assertion
|
|
|
|
$('form.login').append('<input type="hidden" name="browserIdAssertion" value="'+assertion+'" />').submit();
|
2013-07-17 15:46:59 +02:00
|
|
|
},
|
|
|
|
onlogout: function() {
|
|
|
|
// Do nothing
|
|
|
|
}
|
|
|
|
});
|