mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 21:37:17 +01:00
Fix I2PControl invalid password error message.
This commit is contained in:
parent
79768cf783
commit
999001733d
|
@ -214,10 +214,10 @@ void I2PControlSession::handleAuthenticate(const PropertyTree& pt, Response& res
|
||||||
{
|
{
|
||||||
const int api = pt.get<int>(I2P_CONTROL_PARAM_API);
|
const int api = pt.get<int>(I2P_CONTROL_PARAM_API);
|
||||||
const std::string given_pass = pt.get<std::string>(I2P_CONTROL_PARAM_PASSWORD);
|
const std::string given_pass = pt.get<std::string>(I2P_CONTROL_PARAM_PASSWORD);
|
||||||
LogPrint(eLogDebug, "I2PControl Authenticate API = ", api, " Password = ", password);
|
LogPrint(eLogDebug, "I2PControl Authenticate API = ", api, " Password = ", given_pass);
|
||||||
if(given_pass != password) {
|
if(given_pass != password) {
|
||||||
LogPrint(
|
LogPrint(
|
||||||
eLogError, "I2PControl Authenticate Invalid password ", password,
|
eLogError, "I2PControl Authenticate Invalid password ", given_pass,
|
||||||
" expected ", password
|
" expected ", password
|
||||||
);
|
);
|
||||||
response.setError(ErrorCode::InvalidPassword);
|
response.setError(ErrorCode::InvalidPassword);
|
||||||
|
|
Loading…
Reference in a new issue