mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
pad_utils: Factor out author token generation
This commit is contained in:
parent
4e1674ceaf
commit
8053875d45
4 changed files with 10 additions and 3 deletions
|
@ -178,7 +178,7 @@ const sendClientReady = (isReconnect) => {
|
|||
|
||||
let token = Cookies.get('token');
|
||||
if (token == null) {
|
||||
token = `t.${randomString()}`;
|
||||
token = padutils.generateAuthorToken();
|
||||
Cookies.set('token', token, {expires: 60});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue