installer: Allow for arbitrary long passphrases and passwords.

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.
This commit is contained in:
Ludovic Courtès 2019-05-14 11:57:55 +02:00
parent 50867421f9
commit ef250707d3
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
2 changed files with 4 additions and 2 deletions

View File

@ -90,7 +90,8 @@ input box, such as FLAG-PASSWORD."
(input-visible-cb (input-visible-cb
(make-checkbox -1 -1 (G_ "Hide") #\x "x ")) (make-checkbox -1 -1 (G_ "Hide") #\x "x "))
(input-flags* (if input-hide-checkbox? (input-flags* (if input-hide-checkbox?
(logior FLAG-PASSWORD input-flags) (logior FLAG-PASSWORD FLAG-SCROLL
input-flags)
input-flags)) input-flags))
(input-entry (make-entry -1 -1 20 (input-entry (make-entry -1 -1 20
#:flags input-flags*)) #:flags input-flags*))

View File

@ -57,7 +57,8 @@ REAL-NAME, and HOME-DIRECTORY as the initial values in the form."
(password-visible-cb (password-visible-cb
(make-checkbox -1 -1 (G_ "Hide") #\x "x ")) (make-checkbox -1 -1 (G_ "Hide") #\x "x "))
(entry-password (make-entry -1 -1 entry-width (entry-password (make-entry -1 -1 entry-width
#:flags FLAG-PASSWORD)) #:flags (logior FLAG-PASSWORD
FLAG-SCROLL)))
(entry-grid (make-grid 3 5)) (entry-grid (make-grid 3 5))
(button-grid (make-grid 1 1)) (button-grid (make-grid 1 1))
(ok-button (make-button -1 -1 (G_ "OK"))) (ok-button (make-button -1 -1 (G_ "OK")))