1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-16 14:25:22 -05:00
kaiwa/public/js/login.js

20 lines
439 B
JavaScript
Raw Normal View History

2013-09-05 19:53:23 -04:00
$('#loginbox form').on('submit', function (e) {
var jid = $('#jid').val();
var password = $('#password').val();
var wsURL = $('#wsURL').val();
localStorage.config = JSON.stringify({
jid: jid,
server: jid.slice(jid.indexOf('@') + 1),
wsURL: wsURL,
credentials: {
password: password
}
});
window.location = '/';
e.preventDefault();
return false;
});