File: browserid.js

package info (click to toggle)
lemonldap-ng 1.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 13,084 kB
  • ctags: 2,440
  • sloc: perl: 25,708; makefile: 622; sh: 176; php: 6; sql: 5
file content (12 lines) | stat: -rw-r--r-- 304 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
/* Watch login and logout events */

navigator.id.watch({
  loggedInUser: null,
  onlogin: function(assertion) {
	  // POST assertion
	  $('form.BrowserID').append('<input type="hidden" name="browserIdAssertion" value="'+assertion+'" />').submit();
  },
  onlogout: function() {
	  // Do nothing
  }
});