Commit 8b4262eb authored by Jan Koester's avatar Jan Koester
Browse files

test

parent 10005e07
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -142,7 +142,7 @@ void blogi::Auth::_doLogin(const AuthSource &src, const char *username, const ch
        bool ret = clt.GPOcheck("e7d3b8b3-4825-11f0-ae2b-3cecefce9cb6");

        if(ret){
            if(ssid){
            if(ssid && !ssid->empty()){
                Session sess(*_dbconn[tid]);

sess.delSessionData(*ssid, "authid");
@@ -156,6 +156,10 @@ sess.addSessionData(*ssid,"authid",authcon.getSessionID().c_str());

sess.delSessionData(*ssid, "uid");
sess.addSessionData(*ssid,"uid",uid.c_str());
            } else if(ssid){
                clt.remSession();
                httpException[libhttppp::HTTPException::Error] << "Login failed: no session id available!";
                throw httpException;
            }
            authid = authcon.getSessionID();
        } else {
+6 −0
Original line number Diff line number Diff line
@@ -85,6 +85,12 @@ const std::string &blogi::Session::createSession(std::string &buf,const std::str

    buf = sessionid.c_str();

    if(buf.empty()){
        libhttppp::HTTPException excep;
        excep[libhttppp::HTTPException::Error] << "createSession: generated session id is empty!";
        throw excep;
    }

    dbpp::SQL sql;
    dbpp::DBResult res;
    std::vector<char> sbuf;