diff options
Diffstat (limited to 'perl-install/install_steps_interactive.pm')
-rw-r--r-- | perl-install/install_steps_interactive.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm index b3008775a..0d8425956 100644 --- a/perl-install/install_steps_interactive.pm +++ b/perl-install/install_steps_interactive.pm @@ -427,8 +427,7 @@ sub addUser($) { {val => \$u{shell}, list => \@shells, not_edit => !$::expert}, ], focus_out => sub { - print "int $_[0], $u{name}, $u{realname}, $u{shell}\n"; - ($u{name}) = $u{realname} =~ /\U(\S+)/ if $_[0] eq 0; + $u->{name} = lc first($u->{realname} =~ /(\w+)/) if $_[0] eq 0; }, complete => sub { $u{password} eq $u{password2} or $o->ask_warn('', [ _("You must enter the same password"), _("Please try again") ]), return (1,2); |