Revision: 41725
          http://brlcad.svn.sourceforge.net/brlcad/?rev=41725&view=rev
Author:   davidloman
Date:     2010-12-20 19:13:10 +0000 (Mon, 20 Dec 2010)

Log Message:
-----------
Trying to pass the value of '-1' back to a unsigned int just doesn't work well. 
 Made the quint32 values qint32's.

Modified Paths:
--------------
    rt^3/trunk/include/AccountManager.h
    rt^3/trunk/src/GS/AccountManager.cxx

Modified: rt^3/trunk/include/AccountManager.h
===================================================================
--- rt^3/trunk/include/AccountManager.h 2010-12-20 19:07:35 UTC (rev 41724)
+++ rt^3/trunk/include/AccountManager.h 2010-12-20 19:13:10 UTC (rev 41725)
@@ -50,7 +50,7 @@
     QMutex accountListLock;
     QList<Account*>* accounts;
 
-    quint32 validateLoginCreds(QString uname, QString passwd);
+    qint32 validateLoginCreds(QString uname, QString passwd);
     Account* newAccount(QString uname, Portal* p, quint32 id);
     void remAccount(Account* a);
 

Modified: rt^3/trunk/src/GS/AccountManager.cxx
===================================================================
--- rt^3/trunk/src/GS/AccountManager.cxx        2010-12-20 19:07:35 UTC (rev 
41724)
+++ rt^3/trunk/src/GS/AccountManager.cxx        2010-12-20 19:13:10 UTC (rev 
41725)
@@ -53,7 +53,7 @@
 /**
  * returns 0 for bad login.  Positive number is the accountID
  */
-quint32
+qint32
 AccountManager::validateLoginCreds(QString uname, QString passwd)
 {
        /* TODO put in REAL account validation here. */
@@ -85,10 +85,12 @@
 Account*
 AccountManager::login(QString uname, QString passwd, Portal* p)
 {
-       quint32 id = this->validateLoginCreds(uname, passwd);
+       qint32 id = 0;
 
+       id =    this->validateLoginCreds(uname, passwd);
+
        if (id <= 0) {
-               log->logINFO("AccountManager", "Authentication FAILED. User: '" 
+ uname + "'");
+               log->logINFO("AccountManager", "Authentication FAILED. User: '" 
+ uname + "', accountID: " + QString::number(id));
                return NULL;
        }
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to