Release v1.0.0 #16

Merged
Wesser merged 492 commits from release/v1.0.0 into master 2025-02-12 09:19:32 +03:00
257 changed files with 13033 additions and 98 deletions
Showing only changes of commit 6831d9c708 - Show all commits

View File

@ -41,7 +41,7 @@ public class AuthController(IOptionsSnapshot<Admin> user, AuthService auth, Pass
GetCookieParams(),
new User
{
Id = 1,
Id = 1.ToString(),
Username = userEntity.Username,
Email = userEntity.Email,
PasswordHash = userEntity.PasswordHash,
@ -56,10 +56,10 @@ public class AuthController(IOptionsSnapshot<Admin> user, AuthService auth, Pass
[HttpPost("2FA")]
[BadRequestResponse]
public async Task<ActionResult<TwoFactorAuthentication>> TwoFactorAuth([FromBody] TwoFactorAuthRequest request)
public async Task<ActionResult<bool>> TwoFactorAuth([FromBody] TwoFactorAuthRequest request)
{
var tokenResult = await auth.LoginAsync(GetCookieParams(), HttpContext, request.Method.ConvertFromDto(), request.Code);
return Ok(tokenResult ? TwoFactorAuthentication.None : TwoFactorAuthentication.TotpRequired);
return Ok(tokenResult);
}
/// <summary>