[PATCH] warn if vnc passwd is longer than 8 chars
Chris Lumens
clumens at redhat.com
Tue Nov 12 14:44:57 UTC 2013
> @@ -262,11 +262,12 @@ class VncServer:
> def changeVNCPasswdWindow(self):
> """ Change the password to a sane parameter.
>
> - We ask user to input a password that len(password) > 6
> - or password == ''.
> + We ask user to input a password that (len(password) > 6
> + and len(password) <= 8) or password == ''.
> """
>
> - message = _("VNC password provided was not at least 6 characters long.\n"
> + message = _("VNC password provided was not at least 6 characters long. "
> + "or more than 8 characters long.\n"
> "Please enter a new one. Leave blank for no password.")
> app = App("VNC PASSWORD")
> spoke = VNCPassSpoke(app, self.anaconda.ksdata, None, None, None,
There's a typo in the string. Also if you're going to break the
translation here (which it looks like we'll have to), you might as well
make the string better at the same time. Perhaps:
message = _("VNC password must be between six and eight characters long.\n"
"Please enter a new one, or leave blank for no password.")
- Chris
More information about the anaconda-patches
mailing list