Validate login request and refactor login handling
This commit is contained in:
@@ -1,12 +1,22 @@
|
||||
using RecNet.Domain.Common;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using RecNet.Domain.Common;
|
||||
|
||||
namespace API.Contracts.Profiles.Requests;
|
||||
|
||||
public class LoginRequest
|
||||
{
|
||||
[Required]
|
||||
public required string AppVersion { get; set; }
|
||||
|
||||
[Required, StringLength(128, MinimumLength = 1)]
|
||||
public required string DeviceId { get; set; }
|
||||
|
||||
[Required]
|
||||
public required string PlatformAuthentication { get; set; }
|
||||
|
||||
[Required, StringLength(50, MinimumLength = 1)]
|
||||
public required string PlatformId { get; set; }
|
||||
|
||||
[EnumDataType(typeof(PlatformType))]
|
||||
public PlatformType PlatformType { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user