mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-47: Store remote address and hostname within Credentials.
This commit is contained in:
@@ -125,6 +125,8 @@ public class TokenRESTService {
|
||||
credentials.setPassword(password);
|
||||
credentials.setRequest(request);
|
||||
credentials.setSession(request.getSession(true));
|
||||
credentials.setRemoteAddress(request.getRemoteAddr());
|
||||
credentials.setRemoteHostname(request.getRemoteHost());
|
||||
|
||||
return credentials;
|
||||
|
||||
|
@@ -130,6 +130,8 @@ public class UserResource
|
||||
credentials.setPassword(userPasswordUpdate.getOldPassword());
|
||||
credentials.setRequest(request);
|
||||
credentials.setSession(request.getSession(true));
|
||||
credentials.setRemoteAddress(request.getRemoteAddr());
|
||||
credentials.setRemoteHostname(request.getRemoteHost());
|
||||
|
||||
// Verify that the old password was correct
|
||||
try {
|
||||
|
Reference in New Issue
Block a user