forked from xiongyuxing/tiku-backend.net
feat(auth): replace TOTP with phone-first login
This commit is contained in:
@@ -71,7 +71,6 @@ public sealed class AuthSession : AuditableEntity
|
||||
public Guid? ReplacedBySessionId { get; set; }
|
||||
public string TokenHash { get; set; } = string.Empty;
|
||||
public string SecurityStamp { get; set; } = string.Empty;
|
||||
public bool MfaSatisfied { get; set; }
|
||||
public string Provider { get; set; } = string.Empty;
|
||||
public DateTimeOffset ExpiresAt { get; set; }
|
||||
public DateTimeOffset? RevokedAt { get; set; }
|
||||
@@ -99,7 +98,7 @@ public sealed class AuthChallenge : Entity
|
||||
public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow;
|
||||
}
|
||||
|
||||
public enum AuthChallengePurpose { MfaEnrollment, MfaVerification, PasswordChange }
|
||||
public enum AuthChallengePurpose { PasswordChange }
|
||||
|
||||
public sealed class SmsSendRateLimit : ITenantOwned
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user