Show cancel button by default for password (instead of showing cancel after three wrong attempts)
This commit is contained in:
parent
ea3c12f2e4
commit
44f148c7ea
1 changed files with 4 additions and 6 deletions
|
|
@ -43,12 +43,10 @@ struct GitCredential {
|
||||||
PasswordStore.shared.gitRepositoryPassword = newPassword
|
PasswordStore.shared.gitRepositoryPassword = newPassword
|
||||||
sem.signal()
|
sem.signal()
|
||||||
}))
|
}))
|
||||||
if Defaults[.gitRepositoryPasswordAttempts] == 3 {
|
alert.addAction(UIAlertAction(title: "Cancel", style: .cancel) { _ in
|
||||||
alert.addAction(UIAlertAction(title: "Cancel", style: .cancel) { _ in
|
Defaults[.gitRepositoryPasswordAttempts] = -1
|
||||||
Defaults[.gitRepositoryPasswordAttempts] = -1
|
sem.signal()
|
||||||
sem.signal()
|
})
|
||||||
})
|
|
||||||
}
|
|
||||||
alert.addTextField(configurationHandler: {(textField: UITextField!) in
|
alert.addTextField(configurationHandler: {(textField: UITextField!) in
|
||||||
textField.text = PasswordStore.shared.gitRepositoryPassword
|
textField.text = PasswordStore.shared.gitRepositoryPassword
|
||||||
textField.isSecureTextEntry = true
|
textField.isSecureTextEntry = true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue