0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 20:13:05 +02:00

httpcli.hpp : added Request::creds_defined() method.

This commit is contained in:
James Yonan 2016-07-12 22:27:23 -07:00 committed by Lev Stipakov
parent d4cf3b75d7
commit 2f56fb9fbd
No known key found for this signature in database
GPG Key ID: 88670BE258B9C258

View File

@ -170,7 +170,13 @@ namespace openvpn {
}
};
struct Request {
struct Request
{
bool creds_defined() const
{
return !username.empty() || !password.empty();
}
void set_creds(const Creds& creds)
{
username = creds.username;