Changed username to key name

This commit is contained in:
Alex Lavallee 2021-01-18 09:53:58 -08:00
parent a512f1cf6b
commit e53b796670
No known key found for this signature in database
GPG Key ID: FF636FB2C9E94B03
1 changed files with 3 additions and 3 deletions

View File

@ -24,8 +24,8 @@ struct SecretDetailView<SecretType: Secret>: View {
.frame(minHeight: 200, maxHeight: .infinity)
}
var dashedUserName: String {
NSUserName().replacingOccurrences(of: " ", with: "-")
var dashedKeyName: String {
secret.name.replacingOccurrences(of: " ", with: "-")
}
var dashedHostName: String {
@ -36,7 +36,7 @@ struct SecretDetailView<SecretType: Secret>: View {
}
var keyString: String {
keyWriter.openSSHString(secret: secret, comment: "\(dashedUserName)@\(dashedHostName)")
keyWriter.openSSHString(secret: secret, comment: "\(dashedKeyName)@\(dashedHostName)")
}
func copy() {