mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-02 17:08:21 +00:00
Only allow a single approved IP address
This commit is contained in:
parent
f169236613
commit
eb21c7042f
16 changed files with 124 additions and 141 deletions
|
@ -82,7 +82,7 @@ public class LoginController : ControllerBase
|
|||
|
||||
if (ServerConfiguration.Instance.Authentication.UseExternalAuth)
|
||||
{
|
||||
if (this.database.UserApprovedIpAddresses.Where(a => a.UserId == user.UserId).Select(a => a.IpAddress).Contains(ipAddress))
|
||||
if (user.ApprovedIPAddress == ipAddress)
|
||||
{
|
||||
token.Approved = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue