mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
change path for login page
This commit is contained in:
parent
949b24860d
commit
860e1a2391
@ -59,7 +59,7 @@ void LoginPage::handleRequest(Poco::Net::HTTPServerRequest& request, Poco::Net::
|
||||
return;
|
||||
case USER_NO_PRIVATE_KEY:
|
||||
case USER_COMPLETE:
|
||||
response.redirect(ServerConfig::g_serverPath + "/");
|
||||
response.redirect(ServerConfig::g_php_serverPath + "/");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@ -61,7 +61,7 @@ Poco::JSON::Object* JsonGetLogin::handle(Poco::Dynamic::Var params)
|
||||
return result;
|
||||
}
|
||||
result->set("state", "success");
|
||||
result->set("clientIP", session->getClientIp());
|
||||
result->set("clientIP", session->getClientIp().toString());
|
||||
result->set("user", user->getJson());
|
||||
return result;
|
||||
}
|
||||
|
||||
@ -38,6 +38,7 @@ namespace ServerConfig {
|
||||
EmailAccount g_EmailAccount;
|
||||
int g_SessionTimeout = SESSION_TIMEOUT_DEFAULT;
|
||||
std::string g_serverPath;
|
||||
std::string g_php_serverPath;
|
||||
|
||||
bool loadMnemonicWordLists()
|
||||
{
|
||||
@ -90,6 +91,7 @@ namespace ServerConfig {
|
||||
DISASM_FALSERET;
|
||||
g_SessionTimeout = cfg.getInt("session.timeout", SESSION_TIMEOUT_DEFAULT);
|
||||
g_serverPath = cfg.getString("loginServer.path", "");
|
||||
g_php_serverPath = cfg.getString("phpServer.url", "");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@ -34,6 +34,7 @@ namespace ServerConfig {
|
||||
extern EmailAccount g_EmailAccount;
|
||||
extern int g_SessionTimeout;
|
||||
extern std::string g_serverPath;
|
||||
extern std::string g_php_serverPath;
|
||||
|
||||
|
||||
bool loadMnemonicWordLists();
|
||||
|
||||
@ -46,7 +46,7 @@
|
||||
return;
|
||||
case USER_NO_PRIVATE_KEY:
|
||||
case USER_COMPLETE:
|
||||
response.redirect(ServerConfig::g_serverPath + "/");
|
||||
response.redirect(ServerConfig::g_php_serverPath + "/");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user