mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-02 09:08:20 +00:00
Merge branch 'main' into mod-panel
This commit is contained in:
commit
f40c6ce894
27 changed files with 150 additions and 151 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