mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-29 08:28:39 +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;
|
||||
}
|
||||
|
|
|
@ -99,7 +99,7 @@ public class UserController : ControllerBase
|
|||
|
||||
if (update.Biography != null)
|
||||
{
|
||||
if (update.Biography.Length > 100) return this.BadRequest();
|
||||
if (update.Biography.Length > 512) return this.BadRequest();
|
||||
|
||||
user.Biography = update.Biography;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue