GUACAMOLE-540: Move remote address processing to Credentials class for consistency.
This commit is contained in:
1 parent
bc1dc41a7c
commit
cbd77b52ae
5 files changed
+42
-64
No files matched your search
@@ -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