@@ -8,15 +8,10 @@ internal sealed partial class AccountVerificationModalController : ModalControll
8
8
[ NotifyCanExecuteChangedFor ( nameof ( ConfirmCommand ) ) ]
9
9
private string _token = string . Empty ;
10
10
11
- [ ObservableProperty ]
12
- [ NotifyCanExecuteChangedFor ( nameof ( ConfirmCommand ) ) ]
13
- private string _password = string . Empty ;
14
-
15
11
[ ObservableProperty ]
16
12
private ActionStatus _actionStatus ;
17
13
18
14
public bool CanConfirm => ! string . IsNullOrEmpty ( Token )
19
- && ! string . IsNullOrEmpty ( Password )
20
15
&& ActionStatus is not ActionStatus . Pending ;
21
16
22
17
public AccountVerificationModalController ( IServiceProvider services , MainController mainController )
@@ -31,7 +26,7 @@ private async Task ConfirmAsync()
31
26
try
32
27
{
33
28
ActionStatus = ActionStatus . Pending ;
34
- await MainController . Gateway . Rest . VerifyAccountTokenAsync ( _session . AccountName ! , Password , new AccountsVerifyRequest
29
+ await MainController . Gateway . Rest . VerifyAccountTokenAsync ( _session . AccountName ! , _session . Password ! , new AccountsVerifyRequest
35
30
{
36
31
Token = Token ,
37
32
} ) . ConfigureAwait ( true ) ;
@@ -62,7 +57,7 @@ private async Task ResendEmailAsync()
62
57
try
63
58
{
64
59
ActionStatus = ActionStatus . Pending ;
65
- await MainController . Gateway . Rest . SendAccountEmailAsync ( _session . AccountName ! , Password )
60
+ await MainController . Gateway . Rest . SendAccountEmailAsync ( _session . AccountName ! , _session . Password ! )
66
61
. ConfigureAwait ( true ) ;
67
62
68
63
ActionStatus = ActionStatus . Successful ;
0 commit comments