Mercurial > prosody-modules
view mod_jsxc/templates/template.js @ 4828:56eba4bca28f
mod_password_policy: Allow check_password() to indicate the policy that failed
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 22 Dec 2021 14:01:53 +0000 |
| parents | 4bdfd83e091f |
| children |
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); });
