diff options
Diffstat (limited to 'src/web_service')
| -rw-r--r-- | src/web_service/verify_login.cpp | 2 | ||||
| -rw-r--r-- | src/web_service/web_backend.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/web_service/verify_login.cpp b/src/web_service/verify_login.cpp index 050080278..d5b7161cb 100644 --- a/src/web_service/verify_login.cpp +++ b/src/web_service/verify_login.cpp | |||
| @@ -21,7 +21,7 @@ bool VerifyLogin(const std::string& host, const std::string& username, const std | |||
| 21 | return username.empty(); | 21 | return username.empty(); |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | return username == *iter; | 24 | return *iter == username; |
| 25 | } | 25 | } |
| 26 | 26 | ||
| 27 | } // namespace WebService | 27 | } // namespace WebService |
diff --git a/src/web_service/web_backend.cpp b/src/web_service/web_backend.cpp index 12a7e4922..dff380cca 100644 --- a/src/web_service/web_backend.cpp +++ b/src/web_service/web_backend.cpp | |||
| @@ -71,7 +71,7 @@ struct Client::Impl { | |||
| 71 | const std::string& jwt_ = "", const std::string& username_ = "", | 71 | const std::string& jwt_ = "", const std::string& username_ = "", |
| 72 | const std::string& token_ = "") { | 72 | const std::string& token_ = "") { |
| 73 | if (cli == nullptr) { | 73 | if (cli == nullptr) { |
| 74 | cli = std::make_unique<httplib::Client>(host.c_str()); | 74 | cli = std::make_unique<httplib::Client>(host); |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | if (!cli->is_valid()) { | 77 | if (!cli->is_valid()) { |