mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Сhanged minimum and maximum password length to 4 and 256
This commit is contained in:
parent
0b04274ad0
commit
bcba67909a
1 changed files with 2 additions and 2 deletions
|
|
@ -131,7 +131,7 @@ private void PasswordGeneratorFrom_FormClosing(object sender, FormClosingEventAr
|
|||
}
|
||||
try
|
||||
{
|
||||
if (Enumerable.Range(8, 128).Contains(int.Parse(passwordLengthTextBox.Text)))
|
||||
if (Enumerable.Range(4, 256).Contains(int.Parse(passwordLengthTextBox.Text)))
|
||||
{
|
||||
settings.passwordGeneratorLength = passwordLengthTextBox.Text;
|
||||
}
|
||||
|
|
@ -151,7 +151,7 @@ private void PasswordValidation(object sender, EventArgs e)
|
|||
try
|
||||
{
|
||||
if (!Enumerable.Range(1, 1000).Contains(int.Parse(numberOfStringsTextBox.Text)) |
|
||||
!Enumerable.Range(8, 128).Contains(int.Parse(passwordLengthTextBox.Text)) |
|
||||
!Enumerable.Range(4, 256).Contains(int.Parse(passwordLengthTextBox.Text)) |
|
||||
!lowercaseCheckBox.Checked &
|
||||
!uppercaseCheckBox.Checked &
|
||||
!numericCheckBox.Checked &
|
||||
|
|
|
|||
Loading…
Reference in a new issue