👔 Send factor code no longer requires hint

This commit is contained in:
2025-08-17 21:20:42 +08:00
parent a0fe8fd0f0
commit 8e8965eb3d
2 changed files with 5 additions and 22 deletions

View File

@@ -120,8 +120,7 @@ public class AuthController(
[HttpPost("challenge/{id:guid}/factors/{factorId:guid}")]
public async Task<ActionResult> RequestFactorCode(
[FromRoute] Guid id,
[FromRoute] Guid factorId,
[FromBody] string? hint
[FromRoute] Guid factorId
)
{
var challenge = await db.AuthChallenges
@@ -135,7 +134,7 @@ public class AuthController(
try
{
await accounts.SendFactorCode(challenge.Account, factor, hint);
await accounts.SendFactorCode(challenge.Account, factor);
}
catch (Exception ex)
{