blob: 51aba5c459e0874b9b8aade077b0fa5f2e189698 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
$(document).ready(function(){
$('#login-btn').click(on_login);
$('#signup-btn').click(on_signup);
});
function on_login(event) {
srp = new SRP();
srp.identify();
event.preventDefault();
}
function on_signup(event) {
srp = new SRP();
srp.success = function() {
alert("Signed up successfully");
};
srp.register();
event.preventDefault();
}
|