Builtin Prosody: using ConverseJS clear_cache_on_logout=true and allow_user_trust_override=false parameters
This commit is contained in:
parent
dae6aee64e
commit
2704a1a327
@ -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
|
||||
|
||||
|
@ -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
6
package-lock.json
generated
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user