diff options
Diffstat (limited to 'extensions/BrowserID/template')
6 files changed, 0 insertions, 147 deletions
diff --git a/extensions/BrowserID/template/en/default/admin/params/browserid.html.tmpl b/extensions/BrowserID/template/en/default/admin/params/browserid.html.tmpl deleted file mode 100644 index e78dbb471..000000000 --- a/extensions/BrowserID/template/en/default/admin/params/browserid.html.tmpl +++ /dev/null @@ -1,22 +0,0 @@ -[%# This Source Code Form is subject to the terms of the Mozilla Public - # License, v. 2.0. If a copy of the MPL was not distributed with this - # file, You can obtain one at http://mozilla.org/MPL/2.0/. - # - # This Source Code Form is "Incompatible With Secondary Licenses", as - # defined by the Mozilla Public License, v. 2.0. - #%] - -[% - title = "BrowserID" - desc = "Configure BrowserID Authentication" -%] - -[% param_descs = { - browserid_verify_url => "This is the URL for the BrowserID authority that the " _ - "user will be verified against. " _ - "Example: <kbd>https://verifier.login.persona.org/verify</kbd>.", - browserid_includejs_url => "This is the URL needed by BrowserID to load the necessary " _ - "javascript library for authentication. " _ - "Example: <kbd>https://browserid.org</kbd>." - } -%] diff --git a/extensions/BrowserID/template/en/default/hook/account/auth/login-additional_methods.html.tmpl b/extensions/BrowserID/template/en/default/hook/account/auth/login-additional_methods.html.tmpl deleted file mode 100644 index c79e1204e..000000000 --- a/extensions/BrowserID/template/en/default/hook/account/auth/login-additional_methods.html.tmpl +++ /dev/null @@ -1,7 +0,0 @@ -[% IF Param('user_info_class').split(',').contains('BrowserID') - && Param('browserid_includejs_url') %] -<p> -Or, log in with BrowserID: -<img src="extensions/BrowserID/web/sign_in_orange.png" onclick="browserid_sign_in()"> -</p> -[% END %] diff --git a/extensions/BrowserID/template/en/default/hook/account/auth/login-small-additional_methods.html.tmpl b/extensions/BrowserID/template/en/default/hook/account/auth/login-small-additional_methods.html.tmpl deleted file mode 100644 index b14dd5d8e..000000000 --- a/extensions/BrowserID/template/en/default/hook/account/auth/login-small-additional_methods.html.tmpl +++ /dev/null @@ -1,16 +0,0 @@ -[% IF Param('user_info_class').split(',').contains('BrowserID') - && Param('browserid_includejs_url') %] -<script type="text/javascript"> - YAHOO.util.Event.addListener('login_link[% qs_suffix FILTER js %]','click', function () { - var login_link = YAHOO.util.Dom.get('browserid_mini_login[% qs_suffix FILTER js %]'); - YAHOO.util.Dom.removeClass(login_link, 'bz_default_hidden'); - }); - YAHOO.util.Event.addListener('hide_mini_login[% qs_suffix FILTER js %]','click', function () { - var login_link = YAHOO.util.Dom.get('browserid_mini_login[% qs_suffix FILTER js %]'); - YAHOO.util.Dom.addClass(login_link, 'bz_default_hidden'); - }); -</script> -<span id="browserid_mini_login[% qs_suffix FILTER html %]" class="bz_default_hidden"> - <img src="extensions/BrowserID/web/sign_in_orange.png" onclick="browserid_sign_in()" style="margin-bottom: -8px"> or -</span> -[% END %] diff --git a/extensions/BrowserID/template/en/default/hook/account/create-additional_methods.html.tmpl b/extensions/BrowserID/template/en/default/hook/account/create-additional_methods.html.tmpl deleted file mode 100644 index 6f75f5cd7..000000000 --- a/extensions/BrowserID/template/en/default/hook/account/create-additional_methods.html.tmpl +++ /dev/null @@ -1,31 +0,0 @@ -[%# This Source Code Form is subject to the terms of the Mozilla Public - # License, v. 2.0. If a copy of the MPL was not distributed with this - # file, You can obtain one at http://mozilla.org/MPL/2.0/. - # - # This Source Code Form is "Incompatible With Secondary Licenses", as - # defined by the Mozilla Public License, v. 2.0. - #%] - -[% IF Param('user_info_class').split(',').contains('BrowserID') %] -<script type="text/javascript"> -function browserid_create_account() { - navigator.id.getVerifiedEmail(function(assertion) { - if (assertion) { - // This code will be invoked once the user has successfully - // selected an email address they control to sign in with. - document.getElementById('browserid_assertion').value = assertion; - document.getElementById('browserid_form').submit(); - return true; - } - }); -} -</script> - -Or, use your BrowserID account: -<img src="extensions/BrowserID/web/sign_in_orange.png" onclick="browserid_create_account()"> - -<form id="browserid_form" method="POST" action="index.cgi"> - <input type="hidden" name="token" value="[% issue_hash_token(['login']) FILTER html %]"> - <input type="hidden" name="browserid_assertion" id="browserid_assertion" value=""> -</form> -[% END %] diff --git a/extensions/BrowserID/template/en/default/hook/global/header-additional_header.html.tmpl b/extensions/BrowserID/template/en/default/hook/global/header-additional_header.html.tmpl deleted file mode 100644 index 2292edf7f..000000000 --- a/extensions/BrowserID/template/en/default/hook/global/header-additional_header.html.tmpl +++ /dev/null @@ -1,61 +0,0 @@ -[%# This Source Code Form is subject to the terms of the Mozilla Public - # License, v. 2.0. If a copy of the MPL was not distributed with this - # file, You can obtain one at http://mozilla.org/MPL/2.0/. - # - # This Source Code Form is "Incompatible With Secondary Licenses", as - # defined by the Mozilla Public License, v. 2.0. - #%] - -[% RETURN IF user.login - || !Param('browserid_includejs_url') - || !Param('user_info_class').split(',').contains('BrowserID') %] - -[% USE Bugzilla %] -[% cgi = Bugzilla.cgi %] - -[% login_target = cgi.url("-relative" => 1, "-query" => 1) %] -[% IF !login_target OR login_target.match("^token.cgi") %] - [% login_target = "index.cgi" %] -[% END %] - -[% login_target = urlbase _ login_target %] - -<script src="[% Param('browserid_includejs_url') %]" type="text/javascript"></script> - -<script type="text/javascript"> -function createHidden(name, value, form) { - var field = document.createElement('input'); - field.type = 'hidden'; - field.name = name; - field.value = value;; - form.appendChild(field); -} - -function browserid_sign_in() { - navigator.id.get(function(assertion) { - if (assertion) { - // This code will be invoked once the user has successfully - // selected an email address they control to sign in with. - var form = document.createElement('form'); - form.action = '[% login_target FILTER js %]'; - form.method = 'POST'; - form.style.display = 'none'; - - createHidden('token', '[% issue_hash_token(['login']) FILTER js %]', form); - createHidden('Bugzilla_remember', 'on', form); - createHidden('browserid_assertion', assertion, form); - - [% FOREACH field = cgi.param() %] - [% NEXT IF field.search("^(Bugzilla_(login|password|restrictlogin)|token|browserid_assertion)$") %] - [% FOREACH mvalue = cgi.param(field).slice(0) %] - createHidden('[% field FILTER js %]', '[% mvalue FILTER html_linebreak FILTER js %]', form); - [% END %] - [% END %] - - document.body.appendChild(form); - form.submit(); - return true; - } - }); -} -</script> diff --git a/extensions/BrowserID/template/en/default/hook/global/user-error-errors.html.tmpl b/extensions/BrowserID/template/en/default/hook/global/user-error-errors.html.tmpl deleted file mode 100644 index ce872abda..000000000 --- a/extensions/BrowserID/template/en/default/hook/global/user-error-errors.html.tmpl +++ /dev/null @@ -1,10 +0,0 @@ -[% IF error == "browserid_account_too_powerful" %] - [% title = "Account Too Powerful" %] - Your account is a member of a group which is not permitted to use - BrowserID to log in. Please log in with your [% terms.Bugzilla %] username - and password. - <br><br> - (BrowserID logins are disabled for accounts which are members of certain - particularly sensitive groups, while we gain experience with the - technology.) -[% END %] |