X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=src%2Fhttp%2Fpages%2Fannounceidentitypage.cpp;h=b67f16fbd9974205dbb623ac3f1d3e30820168cf;hp=710904c274b9f61ec2b6bb98c77c1613120fd007;hb=f60495a029c54358f82956482fe203fe2b7b5b23;hpb=b9c3763a932cebaa015a27fe111017f6f34dfbaa diff --git a/src/http/pages/announceidentitypage.cpp b/src/http/pages/announceidentitypage.cpp index 710904c..b67f16f 100644 --- a/src/http/pages/announceidentitypage.cpp +++ b/src/http/pages/announceidentitypage.cpp @@ -18,12 +18,18 @@ const std::string AnnounceIdentityPage::CreateLocalIdentityDropDown(const std::s std::string id; std::string name; std::string pubkey; + std::string keypart=""; st.ResultText(0,id); st.ResultText(1,name); st.ResultText(2,pubkey); - rval+=""; + if(pubkey.size()>8) + { + keypart=pubkey.substr(3,5); + } + + rval+=""; st.Step(); } rval+=""; @@ -81,7 +87,7 @@ const std::string AnnounceIdentityPage::GeneratePage(const std::string &method, content+="
Select Identity : "; content+=CreateLocalIdentityDropDown("localidentityid",""); content+=""; - content+="
Type the answers of a few puzzles"; + content+="
Type the answers of a few puzzles. The puzzles are case sensitive."; content+=""; //TODO if we are already inserting a solution for an identity - we shouldn't select any puzzles that are older than the one we are inserting