Add GameVersion domain and login validation
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
namespace API.Configurations;
|
||||
namespace API.Configuration;
|
||||
|
||||
public class RecNetOptions
|
||||
{
|
||||
public bool UseForwardedHeaders { get; set; } = true;
|
||||
public bool UseForwardedHeaders { get; set; }
|
||||
}
|
||||
@@ -34,12 +34,12 @@ public class ProfilesController(IProfileService profileService) : ControllerBase
|
||||
{
|
||||
var result = await profileService.LoginAsync(
|
||||
new LoginProfileCommand(
|
||||
request.AppVersion,
|
||||
request.DeviceId,
|
||||
request.PlatformType,
|
||||
request.PlatformId,
|
||||
request.PlatformAuthentication),
|
||||
ct);
|
||||
|
||||
request.PlatformAuthentication
|
||||
), ct);
|
||||
if (!result.Succeeded)
|
||||
return BadRequest(result.Message);
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using System.Text;
|
||||
using API.Configurations;
|
||||
using API.Configuration;
|
||||
using Microsoft.AspNetCore.Authentication.JwtBearer;
|
||||
using Microsoft.AspNetCore.HttpOverrides;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
|
||||
Reference in New Issue
Block a user