mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-10 05:48:39 +00:00
Fix external auth message showing up when its disabled
This commit is contained in:
parent
b7c5ccbf8c
commit
8edc276767
1 changed files with 13 additions and 8 deletions
|
@ -30,6 +30,8 @@ namespace LBPUnion.ProjectLighthouse.Controllers
|
|||
User user = await this.database.UserFromGameRequest(this.Request, true);
|
||||
if (user == null) return this.StatusCode(403, "");
|
||||
|
||||
if (ServerSettings.Instance.UseExternalAuth)
|
||||
{
|
||||
return this.Ok
|
||||
(
|
||||
$"Please stay on this screen.\n" +
|
||||
|
@ -40,6 +42,9 @@ namespace LBPUnion.ProjectLighthouse.Controllers
|
|||
);
|
||||
}
|
||||
|
||||
return this.Ok($"You are now logged in as {user.Username} (id: {user.UserId}).\n\n" + ServerSettings.Instance.EulaText);
|
||||
}
|
||||
|
||||
[HttpGet("notification")]
|
||||
public IActionResult Notification() => this.Ok();
|
||||
/// <summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue