From 8b3e405968a4611ff901000bdcb2ce4e6d4fd997 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 12 Apr 2012 00:02:18 +0800 Subject: Bug 743643: add browserID button to createaccount page --- extensions/BrowserID/lib/Login.pm | 5 ++-- .../account/create-additional_methods.html.tmpl | 31 ++++++++++++++++++++++ 2 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 extensions/BrowserID/template/en/default/hook/account/create-additional_methods.html.tmpl (limited to 'extensions/BrowserID') diff --git a/extensions/BrowserID/lib/Login.pm b/extensions/BrowserID/lib/Login.pm index 03d33cf6d..c3d87c958 100644 --- a/extensions/BrowserID/lib/Login.pm +++ b/extensions/BrowserID/lib/Login.pm @@ -31,8 +31,9 @@ use Bugzilla::Token; use JSON; use LWP::UserAgent; -use constant requires_verification => 0; -use constant is_automatic => 1; +use constant requires_verification => 0; +use constant is_automatic => 1; +use constant user_can_create_account => 1; sub get_login_info { my ($self) = @_; 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 new file mode 100644 index 000000000..6f75f5cd7 --- /dev/null +++ b/extensions/BrowserID/template/en/default/hook/account/create-additional_methods.html.tmpl @@ -0,0 +1,31 @@ +[%# 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') %] + + +Or, use your BrowserID account: + + +
+ + +
+[% END %] -- cgit v1.2.3-24-g4f1b