generated from Sithas/conan_template
Подготовка интеграционного теста
This commit is contained in:
@@ -66,7 +66,7 @@ public:
|
||||
|
||||
const std::optional<user> maybe_user = user_dao_->GetByLogin(login);
|
||||
|
||||
if (!maybe_user.has_value() && maybe_user.value().hashed_password != HashPassword(password))
|
||||
if (!maybe_user.has_value() || maybe_user.value().hashed_password != HashPassword(password))
|
||||
{
|
||||
BOOST_LOG_TRIVIAL(info) << "POST /api/v1/Auth/Login - Response 403: Incorrect login or password";
|
||||
throw session_exception(http::status::forbidden,"Incorrect login or password");
|
||||
|
||||
Reference in New Issue
Block a user