From ccb36aaa7adc9d07d74dd5c2e64763cc8749cf4c Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Tue, 23 Mar 2010 16:08:48 -0700 Subject: 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 --- template/en/default/global/user-error.html.tmpl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'template') 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 [% file FILTER html %] contains configuration variables that must be set before continuing with the migration. -- cgit v1.2.3-24-g4f1b