simplify askBridgePass

This commit is contained in:
Zane Dufour 2024-04-24 22:59:55 -04:00
parent 6c42a4b880
commit 58c4f7ccdf
No known key found for this signature in database
1 changed files with 1 additions and 5 deletions

View File

@ -85,11 +85,7 @@ func (r *Prompter) askPass(prompt string) (string, error) {
}
func askBridgePass() (string, error) {
if v := os.Getenv("HYDROXIDE_BRIDGE_PASS"); v != "" {
return v, nil
}
b, err := newPrompter().askPass("Bridge password")
return string(b), err
return newPrompter().askPass("Bridge password")
}
func listenAndServeSMTP(addr string, debug bool, authManager *auth.Manager, tlsConfig *tls.Config) error {