backend + web: Set passwords through email confirmation
This commit is contained in:
1 parent
bd8eb65e56
commit
ee5f1d3d10
23 files changed
+281
-110
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user