diff options
author | pad <pad@mandriva.com> | 1999-09-06 10:32:08 +0000 |
---|---|---|
committer | pad <pad@mandriva.com> | 1999-09-06 10:32:08 +0000 |
commit | a53cc3a2866b729ce7f6a36ca9a66cd6afd55a74 (patch) | |
tree | b9b8e4fde652c62d25e28a552165c189073de9b0 /perl-install/install_steps_interactive.pm | |
parent | ed415606af749ae52aef3b3fcb2f59e818e1e705 (diff) | |
download | drakx-backup-do-not-use-a53cc3a2866b729ce7f6a36ca9a66cd6afd55a74.tar drakx-backup-do-not-use-a53cc3a2866b729ce7f6a36ca9a66cd6afd55a74.tar.gz drakx-backup-do-not-use-a53cc3a2866b729ce7f6a36ca9a66cd6afd55a74.tar.bz2 drakx-backup-do-not-use-a53cc3a2866b729ce7f6a36ca9a66cd6afd55a74.tar.xz drakx-backup-do-not-use-a53cc3a2866b729ce7f6a36ca9a66cd6afd55a74.zip |
PAD this works
Diffstat (limited to 'perl-install/install_steps_interactive.pm')
-rw-r--r-- | perl-install/install_steps_interactive.pm | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm index 80efd4070..fd96d1e32 100644 --- a/perl-install/install_steps_interactive.pm +++ b/perl-install/install_steps_interactive.pm @@ -393,17 +393,16 @@ wish to access and any applicable user name and password."), #------------------------------------------------------------------------------ sub setRootPassword($) { my ($o) = @_; -# $o->{superuser} ||= {}; -# $o->{superuser}{password2} ||= $o->{superuser}{password} ||= ""; - my $sup = $o->{superuser}; + $o->{superuser} ||= {}; + my %sup = %{$o->{superuser}}; $o->ask_from_entries_ref(_("Set root password"), _("Set root password"), [_("Password"), _("Password (again)")], - [\$sup->{password}, \$sup->{password2}], + [\$sup{password}, \$sup{password2}], complete => sub { - $sup->{password} eq $sup->{password2} or $o->ask_warn('', [ _("You must enter the same password"), _("Please try again") ]), return (1,1); - (length $sup->{password} < 6) and $o->ask_warn('', _("This password is too simple")), return (1,0); + $sup{password} eq $sup{password2} or $o->ask_warn('', [ _("You must enter the same password"), _("Please try again") ]), return (1,1); + (length $sup{password} < 6) and $o->ask_warn('', _("This password is too simple")), return (1,0); return 0 } ); |