[PATCH] Changed username field to support usernames with capital letters
Vratislav Podzimek
vpodzime at redhat.com
Thu Jun 6 08:29:13 UTC 2013
On Wed, 2013-06-05 at 13:41 -0400, TiOluwa Olarewaju wrote:
> ---
> pyanaconda/ui/tui/spokes/user.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/pyanaconda/ui/tui/spokes/user.py b/pyanaconda/ui/tui/spokes/user.py
> index ce53e1b..201f0e5 100644
> --- a/pyanaconda/ui/tui/spokes/user.py
> +++ b/pyanaconda/ui/tui/spokes/user.py
> @@ -38,7 +38,7 @@ class UserSpoke(FirstbootSpokeMixIn, EditTUISpoke):
> edit_fields = [
> Entry("Create user", "_create", EditTUISpoke.CHECK, True),
> Entry("Fullname", "gecos", re.compile("^[^:]*$"), lambda self,args: args._create),
> - Entry("Username", "name", re.compile("^[a-z0-9_]+$"), lambda self,args: args._create),
> + Entry("Username", "name", re.compile("^[a-zA-Z0-9_]+$"), lambda self,args: args._create),
> Entry("Use password", "_use_password", EditTUISpoke.CHECK, lambda self,args: args._create),
> Entry("Password", "password", EditTUISpoke.PASSWORD, lambda self,args: args._use_password and args._create),
> Entry("Administrator", "_admin", EditTUISpoke.CHECK, lambda self,args: args._create),
This one looks good to me. If nobody sees any problem, I'll push it to
master.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list