Mercurial > hg > orthanc
comparison Core/HttpServer/MongooseServer.cpp @ 24:166664f0f860
base64
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 28 Aug 2012 10:42:43 +0200 |
parents | 62bd05fe4b7c |
children | dd1489098265 |
comparison
equal
deleted
inserted
replaced
23:62bd05fe4b7c | 24:166664f0f860 |
---|---|
606 | 606 |
607 void MongooseServer::RegisterUser(const char* username, | 607 void MongooseServer::RegisterUser(const char* username, |
608 const char* password) | 608 const char* password) |
609 { | 609 { |
610 Stop(); | 610 Stop(); |
611 registeredUsers_[username] = password; | 611 |
612 std::string tag = std::string(username) + ":" + std::string(password); | |
613 registeredUsers_.insert(Toolbox::EncodeBase64(tag)); | |
612 } | 614 } |
613 | 615 |
614 void MongooseServer::SetSslEnabled(bool enabled) | 616 void MongooseServer::SetSslEnabled(bool enabled) |
615 { | 617 { |
616 Stop(); | 618 Stop(); |