Merge pull request #2060 from rhelmer/bug844796-session-token-generation
Bug844796 session token generation
This commit is contained in:
commit
be4adec122
|
@ -6,7 +6,6 @@
|
|||
var ERR = require("async-stacktrace");
|
||||
var Changeset = require("ep_etherpad-lite/static/js/Changeset");
|
||||
var AttributePool = require("ep_etherpad-lite/static/js/AttributePool");
|
||||
var randomString = require('ep_etherpad-lite/static/js/pad_utils').randomString;
|
||||
var db = require("./DB").db;
|
||||
var async = require("async");
|
||||
var settings = require('../utils/Settings');
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
var ERR = require("async-stacktrace");
|
||||
var db = require("./DB").db;
|
||||
var async = require("async");
|
||||
var randomString = require('ep_etherpad-lite/static/js/pad_utils').randomString;
|
||||
var randomString = require("../utils/randomstring");
|
||||
|
||||
/**
|
||||
* returns a read only id for a pad
|
||||
|
|
|
@ -26,7 +26,6 @@ var authorManager = require("./AuthorManager");
|
|||
var padManager = require("./PadManager");
|
||||
var sessionManager = require("./SessionManager");
|
||||
var settings = require("../utils/Settings");
|
||||
var randomString = require('ep_etherpad-lite/static/js/pad_utils').randomString;
|
||||
var log4js = require('log4js');
|
||||
var authLogger = log4js.getLogger("auth");
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
var ERR = require("async-stacktrace");
|
||||
var customError = require("../utils/customError");
|
||||
var randomString = require('ep_etherpad-lite/static/js/pad_utils').randomString;
|
||||
var randomString = require("../utils/randomstring");
|
||||
var db = require("./DB").db;
|
||||
var async = require("async");
|
||||
var groupMangager = require("./GroupManager");
|
||||
|
|
|
@ -23,7 +23,7 @@ var ERR = require("async-stacktrace");
|
|||
var fs = require("fs");
|
||||
var api = require("../db/API");
|
||||
var padManager = require("../db/PadManager");
|
||||
var randomString = require('ep_etherpad-lite/static/js/pad_utils').randomString;
|
||||
var randomString = require("../utils/randomstring");
|
||||
|
||||
//ensure we have an apikey
|
||||
var apikey = null;
|
||||
|
|
|
@ -26,7 +26,7 @@ var argv = require('./Cli').argv;
|
|||
var npm = require("npm/lib/npm.js");
|
||||
var jsonminify = require("jsonminify");
|
||||
var log4js = require("log4js");
|
||||
var randomString = require('ep_etherpad-lite/static/js/pad_utils').randomString;
|
||||
var randomString = require("./randomstring");
|
||||
|
||||
|
||||
/* Root path of the installation */
|
||||
|
|
|
@ -5,7 +5,7 @@ var crypto = require('crypto');
|
|||
|
||||
var randomString = function randomString(len)
|
||||
{
|
||||
crypto.randomBytes(48, function(ex, buf) {
|
||||
crypto.randomBytes(len, function(ex, buf) {
|
||||
return buf.toString('hex');
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue