From a79383b2632312fc74b529048cd1d19393f1f615 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Thu, 28 Feb 2019 07:25:09 +0100 Subject: [PATCH] Revert "login-app: allow login up to 25 chars" This reverts commit 37acc213b7f71c96d36a46229ceeaaa09e2a6575. --- login-app/windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/login-app/windows.go b/login-app/windows.go index e4aaebd..23b4ba3 100644 --- a/login-app/windows.go +++ b/login-app/windows.go @@ -12,12 +12,12 @@ func login(stdscr *gc.Window, in chan gc.Key) (username , password string) { // Initialize the fields and Set field options fields := make([]*gc.Field, 3) - fields[0], _ = gc.NewField(1, 25, 2, 14, 0, 0) + fields[0], _ = gc.NewField(1, 24, 2, 15, 0, 0) defer fields[0].Free() fields[0].SetBackground(gc.ColorPair(5) | gc.A_UNDERLINE) fields[0].SetOptionsOff(gc.FO_AUTOSKIP) - fields[1], _ = gc.NewField(1, 25, 4, 14, 0, 0) + fields[1], _ = gc.NewField(1, 24, 4, 15, 0, 0) defer fields[1].Free() fields[1].SetBackground(gc.ColorPair(5) | gc.A_UNDERLINE) fields[1].SetOptionsOff(gc.FO_PUBLIC)