diff options
author | Daouda Lo <daouda@mandriva.com> | 2004-09-29 02:18:20 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2004-09-29 02:18:20 +0000 |
commit | ac89281e8675a026098f6de35d68debbcfd2f7cf (patch) | |
tree | 8897c933064c1668f5607ea9f0224189573a9619 | |
parent | f7f71ff7ace6f284acb9cb2cd46344731c6cb62d (diff) | |
download | mgaonline-ac89281e8675a026098f6de35d68debbcfd2f7cf.tar mgaonline-ac89281e8675a026098f6de35d68debbcfd2f7cf.tar.gz mgaonline-ac89281e8675a026098f6de35d68debbcfd2f7cf.tar.bz2 mgaonline-ac89281e8675a026098f6de35d68debbcfd2f7cf.tar.xz mgaonline-ac89281e8675a026098f6de35d68debbcfd2f7cf.zip |
- send conf
-rwxr-xr-x | mdkonline_tui | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mdkonline_tui b/mdkonline_tui index 86084d08..dbb8d910 100755 --- a/mdkonline_tui +++ b/mdkonline_tui @@ -58,7 +58,7 @@ sub read_conf() { my %t = getVarsFromSh($wideconf); my $host = chomp_(`hostname`); $t{MACHINE} ||= $1 if $host =~ /(\w+)(.*)/; - $login = $t{LOGIN}; $boxname = $t{MACHINE} + $login = defined $nlogin ? $nlogin : $t{LOGIN}; $boxname = $t{MACHINE} } sub check_login { my ($log, $pass, $box) = @_; @@ -78,7 +78,7 @@ sub send_conf { mdkonline::report_config("$confdir/$log.$pp.$box.online.log"); my $tag = { submit => "upload_wizard", wizard => ["$confdir/$log.$pp.$box.online.log.bz2.uue"] }; undef $w; - my $ww = $in->wait_message(N("Please wait"), N("Reading configuration\n")); + my $ww = $in->wait_message(N("Please wait"), N("Sending configuration...")); ($sendconfres, $key) = mdkonline::send_config($uplink, $tag); mdkonline::hw_upload($login, $pass, $boxname); undef $ww; @@ -148,7 +148,7 @@ $wiz = { ] }, post => sub { - $createaccount = $npassword ne $cfmpassword ? N("The passwords do not match\n Please try again\n") : $nlogin eq '' ? N("Please provide a login") : mdkonline::check_valid_email($email) ? N("Not a valid mail address!\n") : create_new_account($nlogin, $npassword, $email); + $createaccount = $npassword ne $cfmpassword ? N("The passwords do not match\n Please try again\n") : $nlogin eq '' ? N("Please provide a login") : mdkonline::check_valid_email($email) == 0 ? N("Not a valid mail address!\n") : create_new_account($nlogin, $npassword, $email); "createaccount" } }, |