Commit a850e53c authored by enured's avatar enured
Browse files

S13933 Ausgabe von Client Remote IP und falls vorhanden auch FE-Username.

parent 7c78abf2
Pipeline #6978 passed with stage
in 1 minute and 55 seconds
......@@ -345,9 +345,17 @@ class Sip {
# Check if index 's' exists.
$sessionVar = Session::get($s);
$sessionVarFeUser = Session::get(SESSION_FE_USER);
$ip = $_SERVER[CLIENT_REMOTE_ADDRESS];
// if given set fe-user to show in form exception
if(isset($sessionVarFeUser) && $sessionVarFeUser != '' ){
$feUserMessage = " | FE-User: $sessionVarFeUser";
}else{
$feUserMessage = '';
}
if ($sessionVar === false) {
throw new \UserFormException("SIP '$s' not registered - please reload the previous site and try again.", ERROR_SIP_NOT_FOUND);
throw new \UserFormException("SIP '$s' not registered - please reload the previous site and try again. IP:$ip $feUserMessage", ERROR_SIP_NOT_FOUND);
}
// Decode parameter
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment