diff options
Diffstat (limited to 'Bugzilla/Auth/Login')
-rw-r--r-- | Bugzilla/Auth/Login/CGI.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Bugzilla/Auth/Login/CGI.pm b/Bugzilla/Auth/Login/CGI.pm index 033cb992b..2a61a54f7 100644 --- a/Bugzilla/Auth/Login/CGI.pm +++ b/Bugzilla/Auth/Login/CGI.pm @@ -34,6 +34,7 @@ use base qw(Bugzilla::Auth::Login); use constant user_can_create_account => 1; use Bugzilla::Constants; +use Bugzilla::WebService::Constants; use Bugzilla::Util; use Bugzilla::Error; @@ -58,6 +59,12 @@ sub fail_nodata { my $cgi = Bugzilla->cgi; my $template = Bugzilla->template; + if (Bugzilla->error_mode == Bugzilla::Constants::ERROR_MODE_DIE_SOAP_FAULT) { + die SOAP::Fault + ->faultcode(ERROR_AUTH_NODATA) + ->faultstring('Login Required'); + } + # Redirect to SSL if required if (Bugzilla->params->{'sslbase'} ne '' and Bugzilla->params->{'ssl'} ne 'never') |