- add: TFA think
This commit is contained in:
29
Nebula.Launcher/ViewModels/Popup/TfaViewModel.cs
Normal file
29
Nebula.Launcher/ViewModels/Popup/TfaViewModel.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using Nebula.Launcher.Views.Popup;
|
||||
using Nebula.Shared.Services;
|
||||
|
||||
namespace Nebula.Launcher.ViewModels.Popup;
|
||||
|
||||
[ConstructGenerator, ViewModelRegister(typeof(TfaView))]
|
||||
public partial class TfaViewModel : PopupViewModelBase
|
||||
{
|
||||
public Action<string>? OnTfaEntered;
|
||||
|
||||
protected override void InitialiseInDesignMode()
|
||||
{
|
||||
}
|
||||
|
||||
protected override void Initialise()
|
||||
{
|
||||
}
|
||||
|
||||
public void OnTfaEnter(string code)
|
||||
{
|
||||
OnTfaEntered?.Invoke(code);
|
||||
Dispose();
|
||||
}
|
||||
|
||||
[GenerateProperty] public override PopupMessageService PopupMessageService { get; }
|
||||
public override string Title => "2fa";
|
||||
public override bool IsClosable => true;
|
||||
}
|
||||
Reference in New Issue
Block a user