Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Improve Validation IP Address for login #4702

Merged
merged 1 commit into from
Jun 4, 2021

Conversation

ufoloko
Copy link
Contributor

@ufoloko ufoloko commented Jun 3, 2021

I have changed function to get IP for Login Ip validation with last UserRequestIPAddressController function

This PR solves the issue mentioned in #4701

Summary

Basically I have changed

var clientIp = NetworkUtils.GetClientIpAddress(this.Request);

To

var clientIp = userRequestIpAddressController.GetUserRequestIPAddress(new HttpRequestWrapper(this.Request));

I have changed function to get IP for Login Ip validation with last UserRequestIPAddressController function
Copy link
Contributor

@bdukes bdukes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@bdukes bdukes added this to the 9.9.2 milestone Jun 3, 2021
@bdukes bdukes linked an issue Jun 3, 2021 that may be closed by this pull request
@mitchelsellers mitchelsellers merged commit 91d3ead into dnnsoftware:develop Jun 4, 2021
@valadas valadas modified the milestones: 9.9.2, 9.10.0 Jul 7, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Line of code is using obsolete function to get client Ip Address
4 participants