rework javascript interface for authentication modules
[coquelicot.git] / public / javascripts / coquelicot.auth.simplepass.js
1 var authentication = {
2   getData: function() {
3     return {
4       upload_password: $('#upload_password').val()
5     };
6   },
7   focus: function() {
8     $('#upload_password').focus();
9   },
10   handleAccept: function() { alert('success!'); },
11   handleReject: function() {
12     $('#upload_password').val('');
13   },
14   handleFailure: function(status) { alert('failure!' + status); },
15 };