change passwort reset link to use new frontend

This commit is contained in:
einhornimmond 2021-08-12 12:09:57 +02:00
parent 92549faba4
commit c49a55ece0
3 changed files with 10 additions and 1 deletions

View File

@ -84,3 +84,11 @@ std::string PageRequestMessagedHandler::getBaseUrl()
} }
return "https://" + mHost + mLoginServerPath; return "https://" + mHost + mLoginServerPath;
} }
std::string PageRequestMessagedHandler::getHost()
{
if (ServerConfig::g_ServerSetupType == ServerConfig::SERVER_TYPE_TEST) {
return "http://" + mHost;
}
return "https://" + mHost;
}

View File

@ -29,6 +29,7 @@ protected:
unsigned long long getLastGetAsU64(const std::string& uri); unsigned long long getLastGetAsU64(const std::string& uri);
std::string getBaseUrl(); std::string getBaseUrl();
std::string getHost();
Profiler mTimeProfiler; Profiler mTimeProfiler;
std::string mHost; std::string mHost;

View File

@ -299,7 +299,7 @@
</a> </a>
</div> </div>
<div class="reset-pwd-link"> <div class="reset-pwd-link">
<a href="<%= getBaseUrl() %>/resetPassword"><%= langCatalog->gettext("Passwort vergessen") %></a> <a href="<%= getHost() %>/vue/password"><%= langCatalog->gettext("Passwort vergessen") %></a>
</div> </div>
</div> </div>
</div> </div>