backend + web: Set passwords through email confirmation

This commit is contained in:
GonnaHetzMe committed 2026-12-04 20:14:00 +01:00
1 parent bd8eb65e56
commit ee5f1d3d10
23 files changed
+281 -110

No files matched your search

+2 -2
View File
@@ -22,9 +22,9 @@ public sealed class AuthApiClient(HttpClient http)
return await ApiResponse.ReadAsync<UserDto>(response, ct);
}
public async Task ConfirmEmailAsync(string token, CancellationToken ct)
public async Task ConfirmEmailAsync(ConfirmEmailRequest request, CancellationToken ct)
{
using var response = await http.PostAsJsonAsync("auth/confirm-email", new EmailTokenRequest(token), ct);
using var response = await http.PostAsJsonAsync("auth/confirm-email", request, ct);
await ApiResponse.EnsureSuccessAsync(response, ct);
}