Add option to select two flavors of password generator: random and apple's (keychain)

This commit is contained in:
Bob Sun 2017-03-08 00:57:49 -08:00
parent 3cf88dcbc8
commit ad0c39b541
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
5 changed files with 59 additions and 11 deletions

View file

@ -36,12 +36,7 @@ extension DefaultsKeys {
static let isHideOTPOn = DefaultsKey<Bool>("isHideOTPOn")
static let isRememberPassphraseOn = DefaultsKey<Bool>("isRememberPassphraseOn")
static let isShowFolderOn = DefaultsKey<Bool>("isShowFolderOn")
static let passwordGenerationMethod = DefaultsKey<String>("passwordGenerationMethod")
static let passwordGeneratorFlavor = DefaultsKey<String>("passwordGeneratorFlavor")
func initDefaultKeys() {
if Defaults[.passwordGenerationMethod] == "" {
Defaults[.passwordGenerationMethod] = "Random"
}
}
}