mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Submission wizard - Added logging in and email verification check
This commit is contained in:
1 parent
eeaf3999cf
commit
661242ebf9
6 files changed
+152
-20
No files matched your search
@@ -34,8 +34,11 @@ public class CurrentUserViewModel : ActivatableViewModelBase
|
||||
_windowService = windowService;
|
||||
Login = ReactiveCommand.CreateFromTask(ExecuteLogin);
|
||||
|
||||
this.WhenActivated(d => ReactiveCommand.CreateFromTask(ExecuteAutoLogin).Execute().Subscribe().DisposeWith(d));
|
||||
this.WhenActivated(d => _authenticationService.IsLoggedIn.Subscribe(_ => LoadCurrentUser().DisposeWith(d)));
|
||||
this.WhenActivated(d =>
|
||||
{
|
||||
Task.Run(AutoLogin);
|
||||
_authenticationService.IsLoggedIn.Subscribe(_ => Task.Run(LoadCurrentUser)).DisposeWith(d);
|
||||
});
|
||||
}
|
||||
|
||||
public bool Loading
|
||||
@@ -86,7 +89,7 @@ public class CurrentUserViewModel : ActivatableViewModelBase
|
||||
await LoadCurrentUser();
|
||||
}
|
||||
|
||||
private async Task ExecuteAutoLogin(CancellationToken cancellationToken)
|
||||
private async Task AutoLogin()
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user