RSS

(root)/bugzilla/extensions/browserid/trunk : 1 : template/en/default/hook/account/auth/login-additional_methods.html.tmpl

To get this branch, use:
bzr branch /bugzilla/extensions/browserid/trunk

« back to all changes in this revision

Viewing changes to template/en/default/hook/account/auth/login-additional_methods.html.tmpl

Gervase Markham
2011-10-27 06:02:38
Revision ID: gerv@mozilla.org-20111027130238-ox6zq4vzndk7g0zi
Initial import of BrowserID Bugzilla extension.

Show diffs side-by-side

added added

removed removed

 
1
[% IF Param('user_info_class').split(',').contains('BrowserID') %]
 
2
<script src="https://browserid.org/include.js" type="text/javascript"></script>
 
3
 
 
4
<script type="text/javascript">
 
5
function browserid_sign_in() {
 
6
    navigator.id.getVerifiedEmail(function(assertion) {
 
7
        if (assertion) {
 
8
            // This code will be invoked once the user has successfully
 
9
            // selected an email address they control to sign in with.
 
10
            window.location.href = "http://" + window.location.host + "?browserid_assertion=" + assertion;
 
11
        } else {
 
12
            // something went wrong!  the user isn't logged in.
 
13
            alert("Oh no! Something went wrong...");
 
14
        }
 
15
    });
 
16
}
 
17
</script>
 
18
 
 
19
<p>
 
20
Or, you could login using BrowserID: 
 
21
<img src="extensions/BrowserID/web/sign_in_orange.png" onclick="browserid_sign_in()">
 
22
</p>
 
23
[% END %]
 
 
'\\ No newline at end of file'

Loggerhead 1.18.1 is a web-based interface for Bazaar branches