mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-20 12:12:15 +02:00
AuthCreds::is_valid() method now additionally validates
username/password using new validate_auth_cred() function.
This commit is contained in:
parent
82972668eb
commit
a8ace74e8a
@ -31,6 +31,7 @@
|
||||
#include <openvpn/common/options.hpp>
|
||||
#include <openvpn/common/unicode.hpp>
|
||||
#include <openvpn/buffer/safestr.hpp>
|
||||
#include <openvpn/auth/validatecreds.hpp>
|
||||
|
||||
namespace openvpn {
|
||||
|
||||
@ -56,7 +57,7 @@ namespace openvpn {
|
||||
|
||||
bool is_valid() const
|
||||
{
|
||||
return defined();
|
||||
return defined() && validate_auth_cred(username) && validate_auth_cred(password);
|
||||
}
|
||||
|
||||
void wipe_password()
|
||||
|
Loading…
Reference in New Issue
Block a user