mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-01 09:48:37 +00:00
Revert weird vscode formatting
This commit is contained in:
parent
55707e9e3e
commit
9e7af4fdd3
1 changed files with 5 additions and 5 deletions
|
@ -34,10 +34,10 @@ namespace LBPUnion.ProjectLighthouse.Controllers
|
||||||
[HttpGet("announce")]
|
[HttpGet("announce")]
|
||||||
public async Task<IActionResult> Announce()
|
public async Task<IActionResult> Announce()
|
||||||
{
|
{
|
||||||
#if !DEBUG
|
#if !DEBUG
|
||||||
User? user = await this.database.UserFromGameRequest(this.Request);
|
User? user = await this.database.UserFromGameRequest(this.Request);
|
||||||
if (user == null) return this.StatusCode(403, "");
|
if (user == null) return this.StatusCode(403, "");
|
||||||
#else
|
#else
|
||||||
(User, GameToken)? userAndToken = await this.database.UserAndGameTokenFromRequest(this.Request);
|
(User, GameToken)? userAndToken = await this.database.UserAndGameTokenFromRequest(this.Request);
|
||||||
|
|
||||||
if (userAndToken == null) return this.StatusCode(403, "");
|
if (userAndToken == null) return this.StatusCode(403, "");
|
||||||
|
@ -45,12 +45,12 @@ namespace LBPUnion.ProjectLighthouse.Controllers
|
||||||
// ReSharper disable once PossibleInvalidOperationException
|
// ReSharper disable once PossibleInvalidOperationException
|
||||||
User user = userAndToken.Value.Item1;
|
User user = userAndToken.Value.Item1;
|
||||||
GameToken gameToken = userAndToken.Value.Item2;
|
GameToken gameToken = userAndToken.Value.Item2;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return this.Ok
|
return this.Ok
|
||||||
(
|
(
|
||||||
$"You are now logged in as {user.Username}.\n\n" +
|
$"You are now logged in as {user.Username}.\n\n" +
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
"---DEBUG INFO---\n" +
|
"---DEBUG INFO---\n" +
|
||||||
$"user.UserId: {user.UserId}\n" +
|
$"user.UserId: {user.UserId}\n" +
|
||||||
$"token.Approved: {gameToken.Approved}\n" +
|
$"token.Approved: {gameToken.Approved}\n" +
|
||||||
|
@ -58,7 +58,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers
|
||||||
$"token.UserLocation: {gameToken.UserLocation}\n" +
|
$"token.UserLocation: {gameToken.UserLocation}\n" +
|
||||||
$"token.GameVersion: {gameToken.GameVersion}\n" +
|
$"token.GameVersion: {gameToken.GameVersion}\n" +
|
||||||
"---DEBUG INFO---\n\n" +
|
"---DEBUG INFO---\n\n" +
|
||||||
#endif
|
#endif
|
||||||
ServerSettings.Instance.EulaText
|
ServerSettings.Instance.EulaText
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue