mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 05:31:22 +00:00
GUACAMOLE-540: Move remote address processing to Credentials class for consistency.
This commit is contained in:
@@ -55,7 +55,7 @@ public class TokenRESTService {
|
||||
* Logger for this class.
|
||||
*/
|
||||
private static final Logger logger = LoggerFactory.getLogger(TokenRESTService.class);
|
||||
|
||||
|
||||
/**
|
||||
* Service for authenticating users and managing their Guacamole sessions.
|
||||
*/
|
||||
@@ -122,8 +122,6 @@ public class TokenRESTService {
|
||||
credentials.setPassword(password);
|
||||
credentials.setRequest(request);
|
||||
credentials.setSession(request.getSession(false));
|
||||
credentials.setRemoteAddress(request.getRemoteAddr());
|
||||
credentials.setRemoteHostname(request.getRemoteHost());
|
||||
|
||||
return credentials;
|
||||
|
||||
|
@@ -160,8 +160,6 @@ public class UserResource
|
||||
credentials.setPassword(userPasswordUpdate.getOldPassword());
|
||||
credentials.setRequest(request);
|
||||
credentials.setSession(request.getSession(false));
|
||||
credentials.setRemoteAddress(request.getRemoteAddr());
|
||||
credentials.setRemoteHostname(request.getRemoteHost());
|
||||
|
||||
// Verify that the old password was correct
|
||||
try {
|
||||
|
Reference in New Issue
Block a user