aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lluserauth.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/lluserauth.cpp')
-rw-r--r--linden/indra/newview/lluserauth.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/linden/indra/newview/lluserauth.cpp b/linden/indra/newview/lluserauth.cpp
index 0f4c108..4534e88 100644
--- a/linden/indra/newview/lluserauth.cpp
+++ b/linden/indra/newview/lluserauth.cpp
@@ -38,7 +38,7 @@
38 38
39#include "lldir.h" 39#include "lldir.h"
40#include "llversionviewer.h" 40#include "llversionviewer.h"
41#include "viewer.h" 41#include "llappviewer.h"
42#include "llviewerbuild.h" 42#include "llviewerbuild.h"
43#include "llviewercontrol.h" 43#include "llviewercontrol.h"
44#include "llxmlrpctransaction.h" 44#include "llxmlrpctransaction.h"
@@ -82,13 +82,13 @@ LLUserAuth::~LLUserAuth()
82 mTransaction = NULL; 82 mTransaction = NULL;
83} 83}
84 84
85// passwd is already MD5 hashed by the time we get to it. 85
86void LLUserAuth::authenticate( 86void LLUserAuth::authenticate(
87 const char* auth_uri, 87 const char* auth_uri,
88 const char* method, 88 const char* method,
89 const char* firstname, 89 const char* firstname,
90 const char* lastname, 90 const char* lastname,
91 const char* passwd, 91 LLUUID web_login_key,
92 const char* start, 92 const char* start,
93 BOOL skip_optional, 93 BOOL skip_optional,
94 BOOL accept_tos, 94 BOOL accept_tos,
@@ -99,8 +99,6 @@ void LLUserAuth::authenticate(
99 const std::string& hashed_mac, 99 const std::string& hashed_mac,
100 const std::string& hashed_volume_serial) 100 const std::string& hashed_volume_serial)
101{ 101{
102 std::string dpasswd("$1$");
103 dpasswd.append(passwd);
104 llinfos << "Authenticating: " << firstname << " " << lastname << ", " 102 llinfos << "Authenticating: " << firstname << " " << lastname << ", "
105 << /*dpasswd.c_str() <<*/ llendl; 103 << /*dpasswd.c_str() <<*/ llendl;
106 std::ostringstream option_str; 104 std::ostringstream option_str;
@@ -122,7 +120,7 @@ void LLUserAuth::authenticate(
122 XMLRPC_VALUE params = XMLRPC_CreateVector(NULL, xmlrpc_vector_struct); 120 XMLRPC_VALUE params = XMLRPC_CreateVector(NULL, xmlrpc_vector_struct);
123 XMLRPC_VectorAppendString(params, "first", firstname, 0); 121 XMLRPC_VectorAppendString(params, "first", firstname, 0);
124 XMLRPC_VectorAppendString(params, "last", lastname, 0); 122 XMLRPC_VectorAppendString(params, "last", lastname, 0);
125 XMLRPC_VectorAppendString(params, "passwd", dpasswd.c_str(), 0); 123 XMLRPC_VectorAppendString(params, "web_login_key", web_login_key.getString().c_str(), 0);
126 XMLRPC_VectorAppendString(params, "start", start, 0); 124 XMLRPC_VectorAppendString(params, "start", start, 0);
127 XMLRPC_VectorAppendString(params, "version", gCurrentVersion.c_str(), 0); // Includes channel name 125 XMLRPC_VectorAppendString(params, "version", gCurrentVersion.c_str(), 0); // Includes channel name
128 XMLRPC_VectorAppendString(params, "channel", gChannelName.c_str(), 0); 126 XMLRPC_VectorAppendString(params, "channel", gChannelName.c_str(), 0);