Merge pull request #2060 from rhelmer/bug844796-session-token-generation

Bug844796 session token generation
This commit is contained in:
John McLear 2014-01-15 11:46:55 -08:00
commit be4adec122
7 changed files with 5 additions and 7 deletions

View File

@ -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');

View File

@ -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

View File

@ -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");

View File

@ -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");

View File

@ -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;

View File

@ -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 */

View File

@ -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');
});
};