diff --git a/src/server/AuthorizationManager.cpp b/src/server/AuthorizationManager.cpp index 63918bd..34882b0 100644 --- a/src/server/AuthorizationManager.cpp +++ b/src/server/AuthorizationManager.cpp @@ -29,9 +29,7 @@ // -- token management #define TIMEOUTSECS 900 // (15 minutes) time before a token becomes invalid #define AUTHCHARS QString("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") -#define TOKENLENGTH 128 - -#define DEBUG 1 +#define TOKENLENGTH 20 // -- Connection failure limitations //#define AUTHFAILLIMIT 5 //number of sequential failures before IP is blocked for a time @@ -208,7 +206,6 @@ QString AuthorizationManager::GenerateEncCheckString(){ //insert this new key into the hash for later HASH.insert("SSL_CHECK_STRING/"+key, QDateTime::currentDateTime().addSecs(30) ); //only keep a key "alive" for 30 seconds } - if(DEBUG){ qDebug() << "SSL Check String Generated:" << key; } return key; } @@ -231,16 +228,17 @@ QString AuthorizationManager::LoginUC(QHostAddress host, QString encstring){ //Now re-use the "pubkeys" variable for the public SSL keys QString user; pubkeys = CONFIG->allKeys().filter("RegisteredCerts/"); //Format: "RegisteredCerts//" - QStringList kkeys = HASH.keys().filter("SSL_CHECK_STRING/"); //qDebug() << " - Check pubkeys";// << pubkeys; for(int i=0; i