mirror of
https://github.com/boostorg/redis.git
synced 2026-01-28 07:22:35 +00:00
19 lines
384 B
C++
19 lines
384 B
C++
/* Copyright (c) 2018-2022 Marcelo Zimbres Silva (mzimbres@gmail.com)
|
|
*
|
|
* Distributed under the Boost Software License, Version 1.0. (See
|
|
* accompanying file LICENSE.txt)
|
|
*/
|
|
|
|
#include <aedis/endpoint.hpp>
|
|
|
|
#include <string>
|
|
|
|
namespace aedis {
|
|
|
|
auto requires_auth(endpoint const& ep) noexcept -> bool
|
|
{
|
|
return !std::empty(ep.username) && !std::empty(ep.password);
|
|
}
|
|
|
|
} // aedis
|