Revision: 40799
http://brlcad.svn.sourceforge.net/brlcad/?rev=40799&view=rev
Author: davidloman
Date: 2010-09-29 12:53:37 +0000 (Wed, 29 Sep 2010)
Log Message:
-----------
Put in mock account validation for now.
Modified Paths:
--------------
rt^3/trunk/src/GS/AccountManager.cxx
Modified: rt^3/trunk/src/GS/AccountManager.cxx
===================================================================
--- rt^3/trunk/src/GS/AccountManager.cxx 2010-09-29 12:53:08 UTC (rev
40798)
+++ rt^3/trunk/src/GS/AccountManager.cxx 2010-09-29 12:53:37 UTC (rev
40799)
@@ -53,11 +53,30 @@
*/
quint32 AccountManager::validateLoginCreds(QString uname, QString passwd)
{
- //TODO stub in account validation here.
- if (uname == "Kiaser" && passwd == "Sose") {
- return true;
+ //TODO put in REAL account validation here.
+ if (uname == "Guest" && passwd == "Guest") {
+ return 0;
}
- return false;
+ if (uname == "Keyser" && passwd == "Soze") {
+ return 1;
+ }
+ if (uname == "Dean" && passwd == "Keaton") {
+ return 2;
+ }
+ if (uname == "Michael" && passwd == "McManus") {
+ return 3;
+ }
+ if (uname == "Fred" && passwd == "Fenster") {
+ return 4;
+ }
+ if (uname == "Todd" && passwd == "Hockney") {
+ return 5;
+ }
+ if (uname == "Roger" && passwd == "Kint") {
+ return 6; static quint32 nextID;
+ }
+
+ return -1;
}
Account* AccountManager::login(QString uname, QString passwd, Portal* p)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits