[webconsole] do not show registration block when token is not provided

Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
R4SAS 2022-05-01 18:12:07 +03:00
parent 5aebefe73f
commit 9b4e8bf64b

View File

@ -417,7 +417,7 @@ namespace http {
s << "</div>\r\n</div>\r\n";
}
if(dest->IsPublic())
if(dest->IsPublic() && token)
{
std::string webroot; i2p::config::GetOption("http.webroot", webroot);
auto base32 = dest->GetIdentHash ().ToBase32 ();