diff options
Diffstat (limited to 'mdkonline')
-rwxr-xr-x | mdkonline | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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 => { |