Pass recipient to PasswordGenerator.cs
This commit is contained in:
@@ -5,12 +5,14 @@ namespace Password_Manager
|
||||
public partial class GeneratePassword : Form
|
||||
{
|
||||
private string currentPath;
|
||||
private string recipient;
|
||||
|
||||
public GeneratePassword(string name, string currentPath)
|
||||
public GeneratePassword(string name, string currentPath, string recipient)
|
||||
{
|
||||
InitializeComponent();
|
||||
passwordName.Text = name;
|
||||
this.currentPath = currentPath;
|
||||
this.recipient = recipient;
|
||||
}
|
||||
|
||||
public void Generate(object sender, EventArgs e)
|
||||
@@ -27,6 +29,7 @@ namespace Password_Manager
|
||||
File.WriteAllText(
|
||||
currentPath + $"\\{passwordName.Text}.gpg",
|
||||
PasswordGenerator.New(
|
||||
recipient,
|
||||
Convert.ToInt32(passwordLength.Text),
|
||||
noSymbols.Checked)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user