always use generateUniqueUserId. fixes #74
This commit is contained in:
parent
85e488bbe6
commit
7e4dedab38
@ -63,7 +63,7 @@ export default function extendConnector (Y/* :any */) {
|
|||||||
this.protocolVersion = 11
|
this.protocolVersion = 11
|
||||||
this.authInfo = opts.auth || null
|
this.authInfo = opts.auth || null
|
||||||
this.checkAuth = opts.checkAuth || function () { return Promise.resolve('write') } // default is everyone has write access
|
this.checkAuth = opts.checkAuth || function () { return Promise.resolve('write') } // default is everyone has write access
|
||||||
if (opts.generateUserId === true) {
|
if (opts.generateUserId !== false) {
|
||||||
this.setUserId(Y.utils.generateGuid())
|
this.setUserId(Y.utils.generateGuid())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user