Revision: 41626
http://brlcad.svn.sourceforge.net/brlcad/?rev=41626&view=rev
Author: davidloman
Date: 2010-12-15 18:16:42 +0000 (Wed, 15 Dec 2010)
Log Message:
-----------
SessionManager should be sending FailureMsg types on authentication failure.
Modified Paths:
--------------
rt^3/trunk/src/GS/SessionManager.cxx
Modified: rt^3/trunk/src/GS/SessionManager.cxx
===================================================================
--- rt^3/trunk/src/GS/SessionManager.cxx 2010-12-15 18:11:32 UTC (rev
41625)
+++ rt^3/trunk/src/GS/SessionManager.cxx 2010-12-15 18:16:42 UTC (rev
41626)
@@ -27,7 +27,7 @@
#include "AccountManager.h"
#include "NetMsgTypes.h"
#include "libutility.h"
-#include "GenericOneByteMsg.h"
+#include "FailureMsg.h"
#include <QtCore/QMutexLocker>
@@ -165,8 +165,8 @@
/* Quick LEN check on strings. */
if (uname.length() <=0 || passwd.length() <= 0) {
log->logINFO("SessionManager", "Auth FAILED. Zero len uname or
passwd. Disconnecting.");
- GenericOneByteMsg* fail = new GenericOneByteMsg(FAILURE,
ACCOUNT_VALIDATION_FAIL);
- origin->sendThenDisconnect(fail);
+ FailureMsg fail(msg, ACCOUNT_VALIDATION_FAIL);
+ origin->sendThenDisconnect(&fail);
return;
}
@@ -176,8 +176,8 @@
if (a == 0) {
/* Account validation failed */
log->logINFO("SessionManager", "Auth FAILED. Bad uname or
passwd. Disconnecting.");
- GenericOneByteMsg* fail = new GenericOneByteMsg(FAILURE,
ACCOUNT_VALIDATION_FAIL);
- origin->sendThenDisconnect(fail);
+ FailureMsg fail(msg, ACCOUNT_VALIDATION_FAIL);
+ origin->sendThenDisconnect(&fail);
return;
}
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