|
1 | | -@using CodeBeam.UltimateAuth.Core.Contracts |
2 | | -@using CodeBeam.UltimateAuth.Credentials.Contracts |
3 | | -@using CodeBeam.UltimateAuth.Users.Contracts |
4 | | -@inject IUAuthClient UAuthClient |
| 1 | +@inject IUAuthClient UAuthClient |
5 | 2 | @inject ISnackbar Snackbar |
6 | 3 | @inject IDialogService DialogService |
7 | 4 | @inject IUAuthStateManager StateManager |
|
15 | 12 | <DialogContent> |
16 | 13 | <MudStack Class="mud-width-full"> |
17 | 14 | <MudAlert Severity="Severity.Info"> |
18 | | - This is a demonstration of how to implement a credential reset flow. |
19 | | - In a production application, you should use reset token or code in email, SMS etc. verification steps. |
| 15 | + In this development sample, reset codes are written to the server console by a custom ICredentialResetNotifier. |
| 16 | + Production applications should send them through a trusted email or SMS channel. |
20 | 17 | </MudAlert> |
21 | 18 | <MudAlert Severity="Severity.Warning"> |
22 | 19 | Reset request always returns ok even with not found users due to security reasons. |
|
25 | 22 | <MudButton Color="Color.Primary" Variant="Variant.Filled" OnClick="RequestResetAsync">Request Reset</MudButton> |
26 | 23 | @if (_resetRequested) |
27 | 24 | { |
28 | | - <MudText Align="Align.Center">Your reset code is: (Copy it before next step)</MudText> |
29 | | - <MudText Align="Align.Center" Typo="Typo.h6"><b>@_resetCode</b></MudText> |
30 | | - <MudText Align="Align.Center"><MudLink Class="cursor-pointer" Href="@($"/reset?identifier={_identifier}")">Use Reset Code</MudLink></MudText> |
| 25 | + <MudText Align="Align.Center">Your reset code is on the server console.</MudText> |
| 26 | + <MudText Align="Align.Center"><MudLink Class="cursor-pointer" Href="@($"/reset?uauth_identifier={_identifier}")">Use Reset Code</MudLink></MudText> |
31 | 27 | } |
32 | 28 | </MudStack> |
33 | 29 | </DialogContent> |
|
0 commit comments