mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Merge pull request #1468 from menocar/ip-check
Do not do IP address based user identity check when authentication is activated.
This commit is contained in:
commit
b9ed4f4b06
1 changed files with 2 additions and 2 deletions
|
@ -184,8 +184,8 @@ public class Session {
|
|||
boolean reconnect = false;
|
||||
if (user == null) { // user already exists
|
||||
user = UserManager.getInstance().findUser(userName);
|
||||
// TODO: Remove this check since now we do a user authentication.
|
||||
if (user.getHost().equals(host)) {
|
||||
// If authentication is not activated, check the identity using IP address.
|
||||
if (ConfigSettings.getInstance().isAuthenticationActivated() || user.getHost().equals(host)) {
|
||||
user.updateLastActivity(null); // minimizes possible expiration
|
||||
this.userId = user.getId();
|
||||
if (user.getSessionId().isEmpty()) {
|
||||
|
|
Loading…
Reference in a new issue