![Clément Oudot](/assets/img/avatar_default.png)
* Add autologin parameter * Add a form in standard mode (not Choice) for display type logo * Use POST instead of REDIRECT to keep all hidden fields * Fix warning in unit test
13 lines
300 B
JavaScript
13 lines
300 B
JavaScript
/* Watch login and logout events */
|
|
|
|
navigator.id.watch({
|
|
loggedInUser: null,
|
|
onlogin: function(assertion) {
|
|
// POST assertion
|
|
$('form.login').append('<input type="hidden" name="browserIdAssertion" value="'+assertion+'" />').submit();
|
|
},
|
|
onlogout: function() {
|
|
// Do nothing
|
|
}
|
|
});
|