Set minimum password length of generated password to six
This commit is contained in:
parent
9ddc7af4f4
commit
6c9b9df7ed
2 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -24,7 +24,8 @@ class Globals {
|
|||
static let red = UIColor(red:1.00, green:0.23, blue:0.19, alpha:1.0)
|
||||
static let blue = UIColor(red:0.00, green:0.48, blue:1.00, alpha:1.0)
|
||||
|
||||
static let passwordMaximumLength = 32
|
||||
static let passwordMinimumLength = 6
|
||||
static let passwordMaximumLength = 24
|
||||
static let passwordDefaultLength = 16
|
||||
|
||||
private init() { }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue