Use configurable auth everywhere (not tested)

This commit is contained in:
2024-07-07 21:07:20 -03:00
parent 4aa307c65c
commit f14a8d1c39
7 changed files with 39 additions and 27 deletions

View File

@ -2,7 +2,7 @@ module Faaso
module Commands
struct Login
def run(options) : Int32
server = Faaso.server
server = Config.server
Log.info { "Enter password for #{server}" }
if STDIN.tty?
password = (STDIN.noecho &.gets.try &.chomp).to_s