mirror of
https://github.com/moparisthebest/kaiwa
synced 2024-11-12 04:25:05 -05:00
20 lines
439 B
JavaScript
20 lines
439 B
JavaScript
$('#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;
|
|
});
|