mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
adding transform passphrase page class
This commit is contained in:
parent
a7a1758db8
commit
7468b5df29
@ -150,8 +150,8 @@ MemoryBin* KeyPair::createWordIndices(const std::string& passphrase, const Mnemo
|
|||||||
auto mm = MemoryManager::getInstance();
|
auto mm = MemoryManager::getInstance();
|
||||||
|
|
||||||
auto word_indices = mm->getFreeMemory(sizeof(Poco::UInt32) * PHRASE_WORD_COUNT);
|
auto word_indices = mm->getFreeMemory(sizeof(Poco::UInt32) * PHRASE_WORD_COUNT);
|
||||||
Poco::UInt32* word_indices_p = (Poco::UInt32*)(word_indices->data());
|
Poco::UInt64* word_indices_p = (Poco::UInt64*)(word_indices->data());
|
||||||
unsigned long word_indices_old[PHRASE_WORD_COUNT] = { 0 };
|
//unsigned long word_indices_old[PHRASE_WORD_COUNT] = { 0 };
|
||||||
//memset(word_indices_old, 0, PHRASE_WORD_COUNT);// *sizeof(unsigned long));
|
//memset(word_indices_old, 0, PHRASE_WORD_COUNT);// *sizeof(unsigned long));
|
||||||
memset(*word_indices, 0, word_indices->size());
|
memset(*word_indices, 0, word_indices->size());
|
||||||
|
|
||||||
@ -168,7 +168,7 @@ MemoryBin* KeyPair::createWordIndices(const std::string& passphrase, const Mnemo
|
|||||||
if (buffer_cursor < 3) continue;
|
if (buffer_cursor < 3) continue;
|
||||||
if (word_source->isWordExist(acBuffer)) {
|
if (word_source->isWordExist(acBuffer)) {
|
||||||
word_indices_p[word_cursor] = word_source->getWordIndex(acBuffer);
|
word_indices_p[word_cursor] = word_source->getWordIndex(acBuffer);
|
||||||
word_indices_old[word_cursor] = word_source->getWordIndex(acBuffer);
|
// word_indices_old[word_cursor] = word_source->getWordIndex(acBuffer);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
er->addError(new ParamError("KeyPair::generateFromPassphrase", "word didn't exist", acBuffer));
|
er->addError(new ParamError("KeyPair::generateFromPassphrase", "word didn't exist", acBuffer));
|
||||||
@ -185,11 +185,11 @@ MemoryBin* KeyPair::createWordIndices(const std::string& passphrase, const Mnemo
|
|||||||
acBuffer[buffer_cursor++] = *it;
|
acBuffer[buffer_cursor++] = *it;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (memcmp(word_indices_p, word_indices_old, word_indices->size()) != 0) {
|
/*if (memcmp(word_indices_p, word_indices_old, word_indices->size()) != 0) {
|
||||||
|
|
||||||
printf("not identical\n");
|
printf("not identical\n");
|
||||||
memcpy(word_indices_p, word_indices_old, word_indices->size());
|
memcpy(word_indices_p, word_indices_old, word_indices->size());
|
||||||
}
|
}*/
|
||||||
return word_indices;
|
return word_indices;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
314
src/cpp/HTTPInterface/TranslatePassphrase.cpp
Normal file
314
src/cpp/HTTPInterface/TranslatePassphrase.cpp
Normal file
@ -0,0 +1,314 @@
|
|||||||
|
#include "TranslatePassphrase.h"
|
||||||
|
#include "Poco/Net/HTTPServerRequest.h"
|
||||||
|
#include "Poco/Net/HTTPServerResponse.h"
|
||||||
|
#include "Poco/Net/HTMLForm.h"
|
||||||
|
#include "Poco/DeflatingStream.h"
|
||||||
|
|
||||||
|
|
||||||
|
#line 7 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\translatePassphrase.cpsp"
|
||||||
|
|
||||||
|
#include "../Crypto/KeyPair.h"
|
||||||
|
#include "../ServerConfig.h"
|
||||||
|
#line 1 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\header.cpsp"
|
||||||
|
|
||||||
|
#include "../ServerConfig.h"
|
||||||
|
|
||||||
|
|
||||||
|
TranslatePassphrase::TranslatePassphrase(Session* arg):
|
||||||
|
SessionHTTPRequestHandler(arg)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void TranslatePassphrase::handleRequest(Poco::Net::HTTPServerRequest& request, Poco::Net::HTTPServerResponse& response)
|
||||||
|
{
|
||||||
|
response.setChunkedTransferEncoding(true);
|
||||||
|
response.setContentType("text/html");
|
||||||
|
bool _compressResponse(request.hasToken("Accept-Encoding", "gzip"));
|
||||||
|
if (_compressResponse) response.set("Content-Encoding", "gzip");
|
||||||
|
|
||||||
|
Poco::Net::HTMLForm form(request, request.stream());
|
||||||
|
#line 11 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\translatePassphrase.cpsp"
|
||||||
|
|
||||||
|
chooseLanguage(request);
|
||||||
|
// variable needed for flags
|
||||||
|
auto lang = mSession->getLanguage();
|
||||||
|
auto uri_start = ServerConfig::g_serverPath;
|
||||||
|
const char* pageName = gettext("Passphrase Transformieren");
|
||||||
|
std::string passphrase;
|
||||||
|
auto role = mSession->getNewUser()->getModel()->getRole();
|
||||||
|
std::string inputPassphrase;
|
||||||
|
|
||||||
|
Mnemonic* wordSource = &ServerConfig::g_Mnemonic_WordLists[ServerConfig::MNEMONIC_BIP0039_SORTED_ORDER];
|
||||||
|
Mnemonic* targetSource = &ServerConfig::g_Mnemonic_WordLists[ServerConfig::MNEMONIC_GRADIDO_BOOK_GERMAN_RANDOM_ORDER];
|
||||||
|
if(lang == LANG_DE) {
|
||||||
|
wordSource = &ServerConfig::g_Mnemonic_WordLists[ServerConfig::MNEMONIC_GRADIDO_BOOK_GERMAN_RANDOM_ORDER];
|
||||||
|
targetSource = &ServerConfig::g_Mnemonic_WordLists[ServerConfig::MNEMONIC_BIP0039_SORTED_ORDER];
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!form.empty())
|
||||||
|
{
|
||||||
|
|
||||||
|
inputPassphrase = form.get("inputPassphrase", "");
|
||||||
|
auto localPassphrase = KeyPair::filterPassphrase(inputPassphrase);
|
||||||
|
if(localPassphrase != "" && !User::validatePassphrase(localPassphrase, &wordSource)) {
|
||||||
|
addError(new Error(
|
||||||
|
gettext("Fehler"),
|
||||||
|
gettext("Diese Passphrase ist ungültig, bitte überprüfen oder neu generieren (lassen).")
|
||||||
|
));
|
||||||
|
} else {
|
||||||
|
if(wordSource == &ServerConfig::g_Mnemonic_WordLists[ServerConfig::MNEMONIC_BIP0039_SORTED_ORDER]) {
|
||||||
|
targetSource = &ServerConfig::g_Mnemonic_WordLists[ServerConfig::MNEMONIC_GRADIDO_BOOK_GERMAN_RANDOM_ORDER];
|
||||||
|
} else {
|
||||||
|
targetSource = &ServerConfig::g_Mnemonic_WordLists[ServerConfig::MNEMONIC_BIP0039_SORTED_ORDER];
|
||||||
|
}
|
||||||
|
passphrase = KeyPair::passphraseTransform(localPassphrase, wordSource, targetSource);
|
||||||
|
}
|
||||||
|
|
||||||
|
auto btnGenerate = form.get("btnGenerate", "");
|
||||||
|
if("" != btnGenerate) {
|
||||||
|
passphrase = mSession->generatePassphrase();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#line 3 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\header.cpsp"
|
||||||
|
|
||||||
|
bool withMaterialIcons = false;
|
||||||
|
std::ostream& _responseStream = response.send();
|
||||||
|
Poco::DeflatingOutputStream _gzipStream(_responseStream, Poco::DeflatingStreamBuf::STREAM_GZIP, 1);
|
||||||
|
std::ostream& responseStream = _compressResponse ? _gzipStream : _responseStream;
|
||||||
|
responseStream << "\n";
|
||||||
|
// begin include login_header.cpsp
|
||||||
|
// begin include header.cpsp
|
||||||
|
responseStream << "\n";
|
||||||
|
responseStream << "<!DOCTYPE html>\n";
|
||||||
|
responseStream << "<html>\n";
|
||||||
|
responseStream << "<head>\n";
|
||||||
|
responseStream << "<meta charset=\"UTF-8\">\n";
|
||||||
|
responseStream << "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">\n";
|
||||||
|
responseStream << "<title>Gradido Login Server: ";
|
||||||
|
#line 11 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\header.cpsp"
|
||||||
|
responseStream << ( pageName );
|
||||||
|
responseStream << "</title>\n";
|
||||||
|
responseStream << "<link rel=\"stylesheet\" type=\"text/css\" href=\"";
|
||||||
|
#line 12 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\header.cpsp"
|
||||||
|
responseStream << ( ServerConfig::g_php_serverPath );
|
||||||
|
responseStream << "css/loginServer/style.css\">\n";
|
||||||
|
#line 13 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\header.cpsp"
|
||||||
|
if(withMaterialIcons) { responseStream << "\n";
|
||||||
|
responseStream << "<link rel=\"stylesheet\" type=\"text/css\" href=\"";
|
||||||
|
#line 14 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\header.cpsp"
|
||||||
|
responseStream << ( ServerConfig::g_php_serverPath );
|
||||||
|
responseStream << "css/materialdesignicons.min.css\">\n";
|
||||||
|
#line 15 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\header.cpsp"
|
||||||
|
} responseStream << "\n";
|
||||||
|
responseStream << "</head>\n";
|
||||||
|
responseStream << "<body class=\"header-fixed\">\n";
|
||||||
|
responseStream << "<div class=\"versionstring dev-info\">\n";
|
||||||
|
responseStream << "\t<p class=\"grd_small\">Login Server in Entwicklung</p>\n";
|
||||||
|
responseStream << "\t<p class=\"grd_small\">Alpha ";
|
||||||
|
#line 20 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\header.cpsp"
|
||||||
|
responseStream << ( ServerConfig::g_versionString );
|
||||||
|
responseStream << "</p>\n";
|
||||||
|
responseStream << "</div>\n";
|
||||||
|
responseStream << "<!--<nav class=\"grd-left-bar expanded\" data-topbar role=\"navigation\">\n";
|
||||||
|
responseStream << "\t<div class=\"grd-left-bar-section\">\n";
|
||||||
|
responseStream << "\t\t<ul class=\"grd-no-style\">\n";
|
||||||
|
responseStream << "\t\t <li><a href=\"";
|
||||||
|
#line 25 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\header.cpsp"
|
||||||
|
responseStream << ( ServerConfig::g_php_serverPath );
|
||||||
|
responseStream << "\" class=\"grd-nav-bn\">Startseite</a>\n";
|
||||||
|
responseStream << "\t\t <li><a href=\"./account/logout\" class=\"grd-nav-bn\">Logout</a></li>\n";
|
||||||
|
responseStream << "\t\t</ul>\n";
|
||||||
|
responseStream << "\t</div>\n";
|
||||||
|
responseStream << "</nav>-->";
|
||||||
|
// end include header.cpsp
|
||||||
|
responseStream << "\n";
|
||||||
|
responseStream << "<div class=\"authentication-theme auth-style_1\">\n";
|
||||||
|
responseStream << " <div class=\"row\">\n";
|
||||||
|
responseStream << " <div class=\"col-12 logo-section\">\n";
|
||||||
|
responseStream << " <a href=\"";
|
||||||
|
#line 5 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\login_header.cpsp"
|
||||||
|
responseStream << ( ServerConfig::g_php_serverPath );
|
||||||
|
responseStream << "\" class=\"logo\">\n";
|
||||||
|
responseStream << " <picture>\n";
|
||||||
|
responseStream << "\t\t\t\t<source srcset=\"";
|
||||||
|
#line 7 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\login_header.cpsp"
|
||||||
|
responseStream << ( ServerConfig::g_php_serverPath );
|
||||||
|
responseStream << "img/logo_schrift.webp\" type=\"image/webp\">\n";
|
||||||
|
responseStream << "\t\t\t\t<source srcset=\"";
|
||||||
|
#line 8 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\login_header.cpsp"
|
||||||
|
responseStream << ( ServerConfig::g_php_serverPath );
|
||||||
|
responseStream << "img/logo_schrift.png\" type=\"image/png\"> \n";
|
||||||
|
responseStream << "\t\t\t\t<img src=\"";
|
||||||
|
#line 9 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\login_header.cpsp"
|
||||||
|
responseStream << ( ServerConfig::g_php_serverPath );
|
||||||
|
responseStream << "img/logo_schrift.png\" alt=\"logo\" />\n";
|
||||||
|
responseStream << "\t\t\t</picture>\n";
|
||||||
|
responseStream << " </a>\n";
|
||||||
|
responseStream << " </div>\n";
|
||||||
|
responseStream << " </div>\n";
|
||||||
|
responseStream << " <div class=\"row\">\n";
|
||||||
|
responseStream << " <div class=\"col-lg-5 col-md-7 col-sm-9 col-11 mx-auto\">\n";
|
||||||
|
responseStream << " <div class=\"grid\">\n";
|
||||||
|
responseStream << " <div class=\"center-ul-container\">\n";
|
||||||
|
responseStream << " ";
|
||||||
|
#line 18 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\login_header.cpsp"
|
||||||
|
responseStream << ( getErrorsHtml() );
|
||||||
|
responseStream << "\n";
|
||||||
|
responseStream << " </div>\n";
|
||||||
|
responseStream << " <div class=\"grid-body\">";
|
||||||
|
// end include login_header.cpsp
|
||||||
|
// begin include flags.cpsp
|
||||||
|
responseStream << "<form method=\"GET\" action=\"\">\n";
|
||||||
|
responseStream << "\t<div class=\"row pull-right-row\">\n";
|
||||||
|
responseStream << "\t <div class=\"equel-grid pull-right\">\n";
|
||||||
|
responseStream << "\t\t<div class=\"grid-body-small text-center\">\n";
|
||||||
|
responseStream << "\t\t\t<button id=\"flag-england\" name=\"lang\" value=\"en\" title=\"English\" type=\"submit\" ";
|
||||||
|
#line 5 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\flags.cpsp"
|
||||||
|
if(lang != LANG_EN) { responseStream << "class=\"btn btn-outline-secondary flag-btn\"";
|
||||||
|
#line 5 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\flags.cpsp"
|
||||||
|
}
|
||||||
|
else { responseStream << "class=\"btn btn-secondary disabled flag-btn\" disabled";
|
||||||
|
#line 6 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\flags.cpsp"
|
||||||
|
} responseStream << ">\n";
|
||||||
|
responseStream << "\t\t\t <span class=\"flag-england\"></span>\n";
|
||||||
|
responseStream << "\t\t\t</button>\n";
|
||||||
|
responseStream << "\t\t</div>\n";
|
||||||
|
responseStream << "\t </div>\n";
|
||||||
|
responseStream << "\t <div class=\"equel-grid pull-right\">\n";
|
||||||
|
responseStream << "\t\t<div class=\"grid-body-small text-center\">\n";
|
||||||
|
responseStream << "\t\t\t<button id=\"flag-germany\" name=\"lang\" value=\"de\" title=\"Deutsch\" type=\"submit\" ";
|
||||||
|
#line 13 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\flags.cpsp"
|
||||||
|
if(lang != LANG_DE) { responseStream << "class=\"btn btn-outline-secondary flag-btn\"";
|
||||||
|
#line 13 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\flags.cpsp"
|
||||||
|
}
|
||||||
|
else { responseStream << "class=\"btn btn-secondary disabled flag-btn\" disabled";
|
||||||
|
#line 14 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\flags.cpsp"
|
||||||
|
} responseStream << ">\n";
|
||||||
|
responseStream << "\t\t\t <span class=\"flag-germany\"></span>\n";
|
||||||
|
responseStream << "\t\t\t</button>\n";
|
||||||
|
responseStream << "\t\t</div>\n";
|
||||||
|
responseStream << "\t </div>\n";
|
||||||
|
responseStream << "\t</div>\n";
|
||||||
|
responseStream << "</form>";
|
||||||
|
// end include flags.cpsp
|
||||||
|
responseStream << "\n";
|
||||||
|
responseStream << "<div class=\"row mb-3\" style=\"margin-top:70px;\">\n";
|
||||||
|
responseStream << "\t<h2 class=\"mx-auto\">";
|
||||||
|
#line 54 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\translatePassphrase.cpsp"
|
||||||
|
responseStream << ( gettext("Passphrase umwandeln") );
|
||||||
|
responseStream << "</h2>\n";
|
||||||
|
responseStream << "</div>\n";
|
||||||
|
responseStream << "<div class=\"item-wrapper\">\n";
|
||||||
|
responseStream << "<div class=\"row mb-3\">\n";
|
||||||
|
responseStream << " <div class=\"col-md-10 mx-auto\">\n";
|
||||||
|
responseStream << "\t<div class=\"form-group row showcase_row_area\">\n";
|
||||||
|
responseStream << "\t <div class=\"col-md-12 col-lg-12 \">\n";
|
||||||
|
responseStream << "\t\t<div class=\"alert alert-orange\">\n";
|
||||||
|
responseStream << "\t\t <h5 class=\"alert-heading\">";
|
||||||
|
#line 62 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\translatePassphrase.cpsp"
|
||||||
|
responseStream << ( gettext("Was zu tun ist:") );
|
||||||
|
responseStream << "</h5>\n";
|
||||||
|
responseStream << "\t\t <p>";
|
||||||
|
#line 63 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\translatePassphrase.cpsp"
|
||||||
|
responseStream << ( gettext("Kopiere/schreibe deine Passphrase in die Textbox und du bekommst sie in die jeweils andere Sprache umgewandelt.") );
|
||||||
|
responseStream << "</p>\n";
|
||||||
|
responseStream << "\t\t <p>";
|
||||||
|
#line 64 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\translatePassphrase.cpsp"
|
||||||
|
responseStream << ( gettext("Du kannst mit beiden Varianten dein Konto wiederherstellen oder dein Passwort ändern.") );
|
||||||
|
responseStream << "</p>\n";
|
||||||
|
responseStream << "\t\t</div>\n";
|
||||||
|
responseStream << "\t </div>\n";
|
||||||
|
responseStream << "\t <div class=\"col-lg-12 col-md-12 mb-5\">\n";
|
||||||
|
responseStream << "\t\t<form action=\"";
|
||||||
|
#line 68 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\translatePassphrase.cpsp"
|
||||||
|
responseStream << ( uri_start );
|
||||||
|
responseStream << "/transform_passphrase\">\n";
|
||||||
|
responseStream << "\t\t <div class=\"form-group row-showcase_row_area\">\n";
|
||||||
|
responseStream << "\t\t\t<textarea name=\"inputPassphrase\" cols=\"10\" rows=\"5\" id=\"inputPassphrase\" class=\"form-control\" placeholder=\"";
|
||||||
|
#line 70 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\translatePassphrase.cpsp"
|
||||||
|
responseStream << ( gettext("deine Passphrase") );
|
||||||
|
responseStream << "\">";
|
||||||
|
#line 70 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\translatePassphrase.cpsp"
|
||||||
|
responseStream << ( inputPassphrase );
|
||||||
|
responseStream << "</textarea>\n";
|
||||||
|
responseStream << "\t\t </div>\n";
|
||||||
|
responseStream << "\t\t <input name=\"btnTransform\" type=\"submit\" value=\"Umwandeln\" class=\"btn btn btn-orange\">\n";
|
||||||
|
responseStream << "\t\t ";
|
||||||
|
#line 73 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\translatePassphrase.cpsp"
|
||||||
|
if(controller::USER_ROLE_ADMIN == role) { responseStream << "\n";
|
||||||
|
responseStream << "\t\t\t<input name=\"btnGenerate\" type=\"submit\" value=\"Neue generieren\" class=\"btn btn-secondary\">\n";
|
||||||
|
responseStream << "\t\t ";
|
||||||
|
#line 75 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\translatePassphrase.cpsp"
|
||||||
|
} responseStream << "\n";
|
||||||
|
responseStream << "\t\t</form>\n";
|
||||||
|
responseStream << "\t </div>\n";
|
||||||
|
responseStream << "\t ";
|
||||||
|
#line 78 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\translatePassphrase.cpsp"
|
||||||
|
if(passphrase != "") { responseStream << "\n";
|
||||||
|
responseStream << "\t\t<div class=\"col-lg-12 col-md-12\">\n";
|
||||||
|
responseStream << "\t\t\t<div class=\"alert alert-success\">\n";
|
||||||
|
responseStream << "\t\t\t\t<h5 class=\"alert-heading\">Umgewandelte Passphrase: </h5>\n";
|
||||||
|
responseStream << "\t\t\t\t<p>";
|
||||||
|
#line 82 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\translatePassphrase.cpsp"
|
||||||
|
responseStream << ( passphrase );
|
||||||
|
responseStream << "</p>\n";
|
||||||
|
responseStream << "\t\t\t</div>\n";
|
||||||
|
responseStream << "\t\t</div>\n";
|
||||||
|
responseStream << "\t ";
|
||||||
|
#line 85 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\translatePassphrase.cpsp"
|
||||||
|
} responseStream << "\n";
|
||||||
|
responseStream << "\t </div>\n";
|
||||||
|
responseStream << "\t</div>\n";
|
||||||
|
responseStream << " </div>\n";
|
||||||
|
// begin include footer_ripple.cpsp
|
||||||
|
responseStream << "\t\t\t</div>\n";
|
||||||
|
responseStream << "\t\t</div>\n";
|
||||||
|
responseStream << " <!-- content viewport ends -->\n";
|
||||||
|
responseStream << " <!-- partial:partials/_footer.html -->\n";
|
||||||
|
responseStream << " <footer class=\"footer\">\n";
|
||||||
|
responseStream << " <div class=\"row\">\n";
|
||||||
|
responseStream << " <div class=\"col-sm-6 text-center text-sm-right order-sm-1\">\n";
|
||||||
|
responseStream << " <ul class=\"text-gray\">\n";
|
||||||
|
responseStream << "\t\t\t\t<li><a href=\"https://gradido.net/de/datenschutz/\" target=\"_blank\">Datenschutzerklärung</a></li>\n";
|
||||||
|
responseStream << " <li><a href=\"https://gradido.net/de/impressum/\" target=\"_blank\">Impressum</a></li>\n";
|
||||||
|
responseStream << " </ul>\n";
|
||||||
|
responseStream << " </div>\n";
|
||||||
|
responseStream << " <div class=\"col-sm-6 text-center text-sm-left mt-3 mt-sm-0\">\n";
|
||||||
|
responseStream << " <small class=\"text-muted d-block\">Copyright © 2020 Gradido</small>\n";
|
||||||
|
responseStream << " </div>\n";
|
||||||
|
responseStream << " </div>\n";
|
||||||
|
responseStream << " </footer>\n";
|
||||||
|
responseStream << " <!-- partial -->\n";
|
||||||
|
responseStream << " </div>\n";
|
||||||
|
responseStream << " <!-- page content ends -->\n";
|
||||||
|
responseStream << " </div>\n";
|
||||||
|
responseStream << " <div class=\"grd-time-used dev-info\">\n";
|
||||||
|
responseStream << " ";
|
||||||
|
#line 23 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\footer_ripple.cpsp"
|
||||||
|
responseStream << ( mTimeProfiler.string() );
|
||||||
|
responseStream << "\n";
|
||||||
|
responseStream << " </div>\n";
|
||||||
|
responseStream << " <!--page body ends -->\n";
|
||||||
|
responseStream << " <!-- SCRIPT LOADING START FORM HERE /////////////-->\n";
|
||||||
|
responseStream << " <!-- plugins:js -->\n";
|
||||||
|
responseStream << " <!--<script src=\"../../../assets/vendors/js/core.js\"></script>-->\n";
|
||||||
|
responseStream << " <!--<script src=\"../../../assets/vendors/js/vendor.addons.js\"></script>-->\n";
|
||||||
|
responseStream << " <!-- endinject -->\n";
|
||||||
|
responseStream << " <!-- Vendor Js For This Page Ends-->\n";
|
||||||
|
responseStream << " <!--<script src=\"../../../assets/vendors/chartjs/Chart.min.js\"></script>-->\n";
|
||||||
|
responseStream << " <!-- Vendor Js For This Page Ends-->\n";
|
||||||
|
responseStream << " <!-- build:js -->\n";
|
||||||
|
responseStream << " <!--<script src=\"../../../assets/js/template.js\"></script>-->\n";
|
||||||
|
responseStream << " <script src=\"";
|
||||||
|
#line 36 "F:\\Gradido\\gradido_login_server\\src\\cpsp\\footer_ripple.cpsp"
|
||||||
|
responseStream << ( ServerConfig::g_php_serverPath );
|
||||||
|
responseStream << "/js/basic.js\"></script>\n";
|
||||||
|
responseStream << " <!--<script src=\"../../../assets/js/dashboard.js\"></script>-->\n";
|
||||||
|
responseStream << " <!-- endbuild -->\n";
|
||||||
|
responseStream << " </body>\n";
|
||||||
|
responseStream << "</html>\n";
|
||||||
|
responseStream << " ";
|
||||||
|
// end include footer_ripple.cpsp
|
||||||
|
if (_compressResponse) _gzipStream.close();
|
||||||
|
}
|
||||||
20
src/cpp/HTTPInterface/TranslatePassphrase.h
Normal file
20
src/cpp/HTTPInterface/TranslatePassphrase.h
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
#ifndef TranslatePassphrase_INCLUDED
|
||||||
|
#define TranslatePassphrase_INCLUDED
|
||||||
|
|
||||||
|
|
||||||
|
#include "Poco/Net/HTTPRequestHandler.h"
|
||||||
|
|
||||||
|
|
||||||
|
#include "SessionHTTPRequestHandler.h"
|
||||||
|
|
||||||
|
|
||||||
|
class TranslatePassphrase: public SessionHTTPRequestHandler
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
TranslatePassphrase(Session*);
|
||||||
|
|
||||||
|
void handleRequest(Poco::Net::HTTPServerRequest& request, Poco::Net::HTTPServerResponse& response);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#endif // TranslatePassphrase_INCLUDED
|
||||||
Loading…
x
Reference in New Issue
Block a user