my $username = trim($cgi->param("Bugzilla_login"));
my $password = $cgi->param("Bugzilla_password");
- $cgi->delete('Bugzilla_login', 'Bugzilla_password');
+ $cgi->delete('Bugzilla_login', 'Bugzilla_password', 'GoAheadAndLogIn');
if (!defined $username || !defined $password) {
return { failure => AUTH_NODATA };
# Main Script
######################################################################
+# redirect to enter_bug if no field is passed.
+print $cgi->redirect(correct_urlbase() . 'enter_bug.cgi') unless $cgi->param();
+
# Detect if the user already used the same form to submit a bug
my $token = trim($cgi->param('token'));
if ($token) {