Files
gameauthapi/Models/PasswordResetChallenge.cs
T

19 lines
492 B
C#

using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System;
namespace GameAuthApi.Models;
public class PasswordResetChallenge
{
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string Id { get; set; }
public string UserId { get; set; }
public string CodeHash { get; set; }
public int FailedAttempts { get; set; }
public DateTime ExpiresUtc { get; set; }
public DateTime CreatedUtc { get; set; }
public bool Used { get; set; }
}