Mercurial > prosody-modules
view mod_jsxc/templates/template.js @ 5502:fd4d89a5b8db
mod_http_oauth2: Add provisions for dynamically adding simple scopes
This lets additional modules define what scopes they might add to the
userinfo endpoint, or other things.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 01 Jun 2023 18:16:13 +0200 |
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); });