Code formatiert
This commit is contained in:
@@ -34,7 +34,7 @@ namespace ReallifeGamemode.DataService.Controllers
|
||||
|
||||
string token = tokenGenerator.GenerateUserToken(user);
|
||||
|
||||
if(string.IsNullOrEmpty(token))
|
||||
if (string.IsNullOrEmpty(token))
|
||||
{
|
||||
return Unauthorized();
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace ReallifeGamemode.DataService.Controllers
|
||||
|
||||
List<string> locations = new List<string>();
|
||||
|
||||
foreach(var location in list)
|
||||
foreach (var location in list)
|
||||
{
|
||||
string description = location.Description;
|
||||
description = Regex.Replace(description, @"<[^>]*(>|$)", string.Empty);
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace ReallifeGamemode.DataService.Controllers
|
||||
{
|
||||
User user = dbContext.Users.Where(u => u.Id == UserId).FirstOrDefault();
|
||||
|
||||
if(user == null)
|
||||
if (user == null)
|
||||
{
|
||||
return NotFound();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user