mirror of
https://github.com/cirruslabs/tart.git
synced 2026-10-11 00:15:33 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b83bce4544 |
@@ -30,7 +30,9 @@ struct Login: AsyncParsableCommand {
|
||||
|
||||
if let username = username {
|
||||
user = username
|
||||
password = readLine()!
|
||||
|
||||
let passwordData = FileHandle.standardInput.readDataToEndOfFile()
|
||||
password = String(decoding: passwordData, as: UTF8.self)
|
||||
} else {
|
||||
(user, password) = try StdinCredentials.retrieve()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user