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:
parent
d4cf3b75d7
commit
2f56fb9fbd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user