diff options
author | wurblzap%gmail.com <> | 2006-08-20 00:20:23 +0000 |
---|---|---|
committer | wurblzap%gmail.com <> | 2006-08-20 00:20:23 +0000 |
commit | 0ee4621e7828a205189368aa9b8a515574d9c030 (patch) | |
tree | 93caacf40fc87a27e224e8fefa6b7284e686e918 /Bugzilla/Auth/Login | |
parent | 79c7d0e961d9adf2c3a0459594745afb41b19e4c (diff) | |
download | bugs-0ee4621e7828a205189368aa9b8a515574d9c030.tar bugs-0ee4621e7828a205189368aa9b8a515574d9c030.tar.gz bugs-0ee4621e7828a205189368aa9b8a515574d9c030.tar.bz2 bugs-0ee4621e7828a205189368aa9b8a515574d9c030.tar.xz bugs-0ee4621e7828a205189368aa9b8a515574d9c030.zip |
Bug 224577: Bugzilla could use a web services interface.
Patch by Marc Schumann <wurblzap@gmail.com>;
r=mkanat; a=myk
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') |