diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-03-24 00:08:48 +0100 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-03-24 00:08:48 +0100 |
commit | ccb36aaa7adc9d07d74dd5c2e64763cc8749cf4c (patch) | |
tree | ea393c1908bee42b801e1a4cbd7df7ea64ee7263 /template/en/default/global | |
parent | 9e572adb765cfb7d814b38ba1bf7f23c9ac47980 (diff) | |
download | bugzilla-ccb36aaa7adc9d07d74dd5c2e64763cc8749cf4c.tar.gz bugzilla-ccb36aaa7adc9d07d74dd5c2e64763cc8749cf4c.tar.xz |
Bug 553770: Make the JSON-RPC WebService throw a proper error when you don't
provide login credentials on a LOGIN_REQUIRED page. (Before this, it was
attempting to display the HTML login page to JSON-RPC clients.)
r=dkl, a=mkanat
Diffstat (limited to 'template/en/default/global')
-rw-r--r-- | template/en/default/global/user-error.html.tmpl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index 6bf904a94..4b1a82be6 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -1012,6 +1012,10 @@ You can't use %user% without being logged in, because %user% refers to your login name, which we don't know. + [% ELSIF error == "login_required" %] + [%# Used for non-web-based LOGIN_REQUIRED situations. %] + You must log in before using this part of [% terms.Bugzilla %]. + [% ELSIF error == "migrate_config_created" %] The file <kbd>[% file FILTER html %]</kbd> contains configuration variables that must be set before continuing with the migration. |