Builtin Prosody: using ConverseJS clear_cache_on_logout=true and allow_user_trust_override=false parameters

This commit is contained in:
John Livingston
2022-01-16 19:29:20 +01:00
parent dae6aee64e
commit 2704a1a327
3 changed files with 12 additions and 3 deletions

View File

@ -175,6 +175,14 @@ window.initConverse = async function initConverse ({
let isAuthenticated: boolean = false
if (authenticationUrl !== '') {
// We are in builtin-prosody mode.
// So the user will never se the «trusted browser» checkbox.
// So we have to disable it
// (and ensure clear_cache_on_logout is true,
// see https://conversejs.org/docs/html/configuration.html#allow-user-trust-override).
params.clear_cache_on_logout = true
params.allow_user_trust_override = false
const auth = await authenticatedMode(authenticationUrl)
if (auth) {
params.authentication = 'login'