mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 15:33:09 +00:00
DS-1191 provide a warning in the logs if resumeLogin fails because of ip mismatch
This commit is contained in:
@@ -279,7 +279,9 @@ public class AuthenticationUtil
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Possible hack attempt.
|
// Possible hack attempt or maybe your setup is not providing a consistent end-user IP address.
|
||||||
|
log.info(LogManager.getHeader(context, "ip_mismatch", "id=" + id + ", request ip=" +
|
||||||
|
request.getRemoteAddr() + ", session ip=" + address));
|
||||||
}
|
}
|
||||||
} // if id
|
} // if id
|
||||||
} // if session
|
} // if session
|
||||||
|
Reference in New Issue
Block a user