1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-05-02 16:10:02 +00:00

Resolve "Allow setting a password for publicly shared form and grid views"

This commit is contained in:
Davide Silvestri 2022-04-26 19:57:54 +00:00
parent d6cae29895
commit d6b8a57a79
46 changed files with 1628 additions and 107 deletions
web-frontend/modules/core/plugins

View file

@ -26,9 +26,8 @@ export class RealTimeHandler {
this.reconnect = reconnect
this.anonymous = anonymous
const token = anonymous
? 'anonymous'
: this.context.store.getters['auth/token']
const jwtToken = this.context.store.getters['auth/token']
const token = anonymous ? jwtToken || 'anonymous' : jwtToken
// If the user is already connected to the web socket, we don't have to do
// anything.