web UI
This commit is contained in:
@@ -5,15 +5,15 @@ namespace VisionBuilder.UI.Windows.Settings;
|
||||
|
||||
public class WindowsPasswordInputService: IPasswordInputService
|
||||
{
|
||||
public string GetPassword()
|
||||
public Task<string?> GetPasswordAsync()
|
||||
{
|
||||
if (MaterialInputBox.Prompt("Password required", "", out var password, true) == DialogResult.OK)
|
||||
{
|
||||
return password;
|
||||
return Task.FromResult<string?>(password);
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
return Task.FromResult<string?>(null);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user