Set minimum password length of generated password to six

This commit is contained in:
Bob Sun 2017-03-08 20:39:08 -08:00
parent 9ddc7af4f4
commit 6c9b9df7ed
2 changed files with 4 additions and 3 deletions

View file

@ -53,7 +53,7 @@ class PasswordEditorTableViewController: UITableViewController, FillPasswordTabl
cell = fillPasswordCell!
case .passwordLengthCell:
passwordLengthCell = tableView.dequeueReusableCell(withIdentifier: "passwordLengthCell", for: indexPath) as? SliderTableViewCell
passwordLengthCell?.reset(title: "Length", minimumValue: 1, maximumValue: Globals.passwordMaximumLength, defaultValue: Globals.passwordDefaultLength)
passwordLengthCell?.reset(title: "Length", minimumValue: Globals.passwordMinimumLength, maximumValue: Globals.passwordMaximumLength, defaultValue: Globals.passwordDefaultLength)
cell = passwordLengthCell!
default:
cell = tableView.dequeueReusableCell(withIdentifier: "textFieldCell", for: indexPath) as! ContentTableViewCell