mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix link generation
This commit is contained in:
parent
86ccb27301
commit
73443e373b
@ -122,10 +122,10 @@ namespace controller {
|
|||||||
std::string EmailVerificationCode::getLink()
|
std::string EmailVerificationCode::getLink()
|
||||||
{
|
{
|
||||||
std::string link = mBaseUrl;
|
std::string link = mBaseUrl;
|
||||||
if (ServerConfig::g_frontend_checkEmailPath.size() > 1 && ServerConfig::g_frontend_checkEmailPath.data()[0] != '/') {
|
if (ServerConfig::g_frontend_checkEmailPath.size() > 1) {
|
||||||
link += '/';
|
link = ServerConfig::g_frontend_checkEmailPath;
|
||||||
}
|
}
|
||||||
link += ServerConfig::g_frontend_checkEmailPath;
|
|
||||||
if (link.data()[link.size() - 1] != '/') {
|
if (link.data()[link.size() - 1] != '/') {
|
||||||
link += '/';
|
link += '/';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user