installer: Allow for arbitrary long passphrases and passwords.
authorLudovic Courtès <ludo@gnu.org>
Tue, 14 May 2019 09:57:55 +0000 (11:57 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 14 May 2019 10:11:04 +0000 (12:11 +0200)
Fixes <https://bugs.gnu.org/35716>.
Reported by sirmacik <sirmacik@wioo.waw.pl>.

* gnu/installer/newt/page.scm (run-input-page): Add FLAG-SCROLL to
INPUT-FLAGS*.
* gnu/installer/newt/user.scm (run-user-add-page): Add FLAG-SCROLL to
ENTRY-PASSWORD.

gnu/installer/newt/page.scm
gnu/installer/newt/user.scm

index 07779b1..6291549 100644 (file)
@@ -90,7 +90,8 @@ input box, such as FLAG-PASSWORD."
          (input-visible-cb
           (make-checkbox -1 -1 (G_ "Hide") #\x "x "))
          (input-flags* (if input-hide-checkbox?
-                           (logior FLAG-PASSWORD input-flags)
+                           (logior FLAG-PASSWORD FLAG-SCROLL
+                                   input-flags)
                            input-flags))
          (input-entry (make-entry -1 -1 20
                                   #:flags input-flags*))
index 13c20cd..dab8051 100644 (file)
@@ -57,7 +57,8 @@ REAL-NAME, and HOME-DIRECTORY as the initial values in the form."
          (password-visible-cb
           (make-checkbox -1 -1 (G_ "Hide") #\x "x "))
          (entry-password (make-entry -1 -1 entry-width
-                                     #:flags FLAG-PASSWORD))
+                                     #:flags (logior FLAG-PASSWORD
+                                                     FLAG-SCROLL)))
          (entry-grid (make-grid 3 5))
          (button-grid (make-grid 1 1))
          (ok-button (make-button -1 -1 (G_ "OK")))