diff --git a/ProjectLighthouse/Controllers/LoginController.cs b/ProjectLighthouse/Controllers/LoginController.cs index 250aad9d..fa37e672 100644 --- a/ProjectLighthouse/Controllers/LoginController.cs +++ b/ProjectLighthouse/Controllers/LoginController.cs @@ -55,7 +55,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers if (user == null) return this.StatusCode(403, ""); string ipAddressAndName = $"{token.UserLocation}|{user.Username}"; - if (DeniedAuthenticationHelper.RecentlyDenied(ipAddressAndName) || DeniedAuthenticationHelper.GetAttempts(ipAddressAndName) > 5) + if (DeniedAuthenticationHelper.RecentlyDenied(ipAddressAndName) || (DeniedAuthenticationHelper.GetAttempts(ipAddressAndName) > 3)) { this.database.AuthenticationAttempts.RemoveRange (this.database.AuthenticationAttempts.Include(a => a.GameToken).Where(a => a.GameToken.UserId == user.UserId)); diff --git a/ProjectLighthouse/Controllers/MessageController.cs b/ProjectLighthouse/Controllers/MessageController.cs index 1da30dae..aff3ddd6 100644 --- a/ProjectLighthouse/Controllers/MessageController.cs +++ b/ProjectLighthouse/Controllers/MessageController.cs @@ -34,6 +34,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers ( $"Please stay on this screen.\n" + $"Before continuing, you must approve this session at {ServerSettings.Instance.ExternalUrl}.\n" + + $"Please keep in mind that if the session is denied you may have to wait up to 5-10 minutes to try logging in again.\n" + $"Once approved, you may press X and continue.\n\n" + ServerSettings.Instance.EulaText ); diff --git a/ProjectLighthouse/Helpers/DeniedAuthenticationHelper.cs b/ProjectLighthouse/Helpers/DeniedAuthenticationHelper.cs index decfce1f..1dc990a0 100644 --- a/ProjectLighthouse/Helpers/DeniedAuthenticationHelper.cs +++ b/ProjectLighthouse/Helpers/DeniedAuthenticationHelper.cs @@ -19,7 +19,7 @@ namespace LBPUnion.ProjectLighthouse.Helpers { if (!IPAddressAndNameDeniedAt.TryGetValue(ipAddressAndName, out long timestamp)) return false; - return TimestampHelper.Timestamp < timestamp + 60; + return TimestampHelper.Timestamp < timestamp + 300; } public static void AddAttempt(string ipAddressAndName)