From f3f20f53a25a89f1e44befcac78676b4220aa499 Mon Sep 17 00:00:00 2001 From: Matthew Faltys Date: Fri, 22 Nov 2019 17:32:08 +0000 Subject: [PATCH] Cleanup password prompts --- nethack-launcher/print_change_password_screen.go | 8 -------- nethack-launcher/print_register_screen.go | 4 +--- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/nethack-launcher/print_change_password_screen.go b/nethack-launcher/print_change_password_screen.go index 6b58a05..fb6ba94 100644 --- a/nethack-launcher/print_change_password_screen.go +++ b/nethack-launcher/print_change_password_screen.go @@ -12,21 +12,13 @@ import ( ) func printChangePasswordScreen(redisClient *redis.Client, username string) { - // TODO : configure password restriction checking clearScreen() fmt.Printf(" %s\n", config.NethackLauncher.ServerDisplay) println("") fmt.Printf(" Welcome %s\n", username) - println(" Only characters and numbers are allowed, with no spaces.") - println(" 20 characters max. (blank entry aborts)") println("") - //fmt.Printf(">> ") scanner := bufio.NewScanner(os.Stdin) - //for scanner.Scan() { - // if scanner.Text() == "" { - // printUserScreen(redisClient, username) - // } // turn off echo display exec.Command("stty", "-F", "/dev/tty", "-echo").Run() diff --git a/nethack-launcher/print_register_screen.go b/nethack-launcher/print_register_screen.go index 323bfb4..0c9720d 100644 --- a/nethack-launcher/print_register_screen.go +++ b/nethack-launcher/print_register_screen.go @@ -12,12 +12,10 @@ import ( ) func printRegisterScreen(redisClient *redis.Client) { - // TODO : configure password restriction checking fmt.Printf(" %s\n", config.NethackLauncher.ServerDisplay) println("") println(" Welcome new user. Please enter a username") - println(" Only characters and numbers are allowed, with no spaces.") - println(" 20 characters max. (blank entry aborts)") + println(" Blank entry aborts") println("") fmt.Printf(">> ")