summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/Util.pm
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2014-02-25 22:51:40 +0100
committerDave Lawrence <dlawrence@mozilla.com>2014-02-25 22:51:40 +0100
commitc3f625b127689438304bf8b5dbf16dd34c7fb905 (patch)
tree5634a35dc871bc2616f33f9f75b25fe9bc715ae7 /Bugzilla/WebService/Util.pm
parent8fee28c9137095b37103106ae41c35d9c6523a52 (diff)
downloadbugzilla-c3f625b127689438304bf8b5dbf16dd34c7fb905.tar.gz
bugzilla-c3f625b127689438304bf8b5dbf16dd34c7fb905.tar.xz
Bug 976765 - backport upstream bug 972881 to bmo/4.2 to add hooks to Bugzilla/WebService/Server/REST.pm
Diffstat (limited to 'Bugzilla/WebService/Util.pm')
-rw-r--r--Bugzilla/WebService/Util.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Util.pm b/Bugzilla/WebService/Util.pm
index 27e06a1dd..f5f92e6eb 100644
--- a/Bugzilla/WebService/Util.pm
+++ b/Bugzilla/WebService/Util.pm
@@ -254,6 +254,9 @@ sub fix_credentials {
if (exists $params->{'token'}) {
$params->{'Bugzilla_token'} = $params->{'token'};
}
+
+ # Allow extensions to modify the credential data before login
+ Bugzilla::Hook::process('webservice_fix_credentials', { params => $params });
}
__END__