File

mod_jsxc/templates/template.js @ 4826:3a5fbb6c61b3

mod_jsxc: Try not to put username and password into the ?query ...
author Kim Alvefur <zash@zash.se>
date Wed, 15 Dec 2021 22:24:34 +0100
parent 4825:4bdfd83e091f
line wrap: on
line source

$(function() {
	let jsxc = new JSXC({
		loadConnectionOptions: function(username, password) {
			return Promise.resolve(%s);
		}
	});

	let formElement = $('#jsxc_login_form');
	let usernameElement = $('#jsxc_username');
	let passwordElement = $('#jsxc_password');

	jsxc.watchForm(formElement, usernameElement, passwordElement);
});