summaryrefslogtreecommitdiffstats
path: root/mdkonline
diff options
context:
space:
mode:
Diffstat (limited to 'mdkonline')
-rwxr-xr-xmdkonline12
1 files changed, 8 insertions, 4 deletions
diff --git a/mdkonline b/mdkonline
index f24ef0e6..cbcec800 100755
--- a/mdkonline
+++ b/mdkonline
@@ -188,10 +188,14 @@ $wiz = {
}
},
post => sub {
- mdkonline::automated_upgrades($conffile, $login, md5_hex($password), $boxname, $key, $country, 'TRUE');
- mdkonline::write_wide_conf($login, $boxname, $country);
- mdkonline::clean_confdir();
- "end"
+ if ($sendconfres eq 'TRUE' && $key) {
+ mdkonline::automated_upgrades($conffile, $login, md5_hex($password), $boxname, $key, $country, 'TRUE');
+ mdkonline::write_wide_conf($login, $boxname, $country);
+ mdkonline::clean_confdir();
+ "end"
+ } else {
+ "authenticate"
+ }
},
},
end => {