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
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
3 changed files with 12 additions and 3 deletions

View File

@ -10,6 +10,7 @@
* This plugin is now using types declarations from the official @peertube/peertube-types package.
* Builtin Prosody, Share chat url: fixed new day hidding when no scrollbar in readonly mode.
* Builtin Prosody: using ConverseJS clear_cache_on_logout=true and allow_user_trust_override=false parameters
## 5.4.0

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'

6
package-lock.json generated
View File

@ -4280,9 +4280,9 @@
}
},
"engine.io": {
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/engine.io/-/engine.io-6.1.0.tgz",
"integrity": "sha512-ErhZOVu2xweCjEfYcTdkCnEYUiZgkAcBBAhW4jbIvNG8SLU3orAqoJCiytZjYF7eTpVmmCrLDjLIEaPlUAs1uw==",
"version": "6.1.1",
"resolved": "https://registry.npmjs.org/engine.io/-/engine.io-6.1.1.tgz",
"integrity": "sha512-AyMc20q8JUUdvKd46+thc9o7yCZ6iC6MoBCChG5Z1XmFMpp+2+y/oKvwpZTUJB0KCjxScw1dV9c2h5pjiYBLuQ==",
"dev": true,
"requires": {
"@types/cookie": "^0.4.1",