summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpad <pad@mandriva.com>1999-09-06 10:32:08 +0000
committerpad <pad@mandriva.com>1999-09-06 10:32:08 +0000
commita53cc3a2866b729ce7f6a36ca9a66cd6afd55a74 (patch)
treeb9b8e4fde652c62d25e28a552165c189073de9b0
parented415606af749ae52aef3b3fcb2f59e818e1e705 (diff)
downloaddrakx-a53cc3a2866b729ce7f6a36ca9a66cd6afd55a74.tar
drakx-a53cc3a2866b729ce7f6a36ca9a66cd6afd55a74.tar.gz
drakx-a53cc3a2866b729ce7f6a36ca9a66cd6afd55a74.tar.bz2
drakx-a53cc3a2866b729ce7f6a36ca9a66cd6afd55a74.tar.xz
drakx-a53cc3a2866b729ce7f6a36ca9a66cd6afd55a74.zip
PAD this works
-rw-r--r--perl-install/install_steps_interactive.pm11
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
}
);