/[web]/templates/bugzilla/trunk/account/auth/login.html.tmpl
ViewVC logotype

Contents of /templates/bugzilla/trunk/account/auth/login.html.tmpl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 48 - (show annotations) (download)
Fri Nov 26 14:56:29 2010 UTC (13 years, 4 months ago) by dmorgan
File size: 3854 byte(s)
Add custom template with identity support
1 [%# The contents of this file are subject to the Mozilla Public
2 # License Version 1.1 (the "License"); you may not use this file
3 # except in compliance with the License. You may obtain a copy of
4 # the License at http://www.mozilla.org/MPL/
5 #
6 # Software distributed under the License is distributed on an "AS
7 # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
8 # implied. See the License for the specific language governing
9 # rights and limitations under the License.
10 #
11 # The Original Code is the Bugzilla Bug Tracking System.
12 #
13 # The Initial Developer of the Original Code is Netscape Communications
14 # Corporation. Portions created by Netscape are
15 # Copyright (C) 1998 Netscape Communications Corporation. All
16 # Rights Reserved.
17 #
18 # Contributor(s): Gervase Markham <gerv@gerv.net>
19 # Toms Baugis <toms@myrealbox.com>
20 #%]
21
22 [%# INTERFACE:
23 # target: string. URL to go to after login.
24 #%]
25
26 [% IF !target %]
27 [% target = "index.cgi" %]
28 [% END %]
29
30 [% PROCESS global/variables.none.tmpl %]
31
32 [% PROCESS global/header.html.tmpl
33 title = "Log in to $terms.Bugzilla",
34 onload = "document.forms['login'].Bugzilla_login.focus()"
35 %]
36
37 [% USE Bugzilla %]
38
39 <p>
40 I need a legitimate login and password to continue.
41 </p>
42
43 <form name="login" action="[% target FILTER html %]" method="POST"
44 [%- IF Bugzilla.cgi.param("data") %] enctype="multipart/form-data"[% END %]>
45 <table>
46 <tr>
47 <th align="right"><label for="Bugzilla_login">Login:</label></th>
48 <td>
49 <input size="35" id="Bugzilla_login" name="Bugzilla_login">
50 [% Param('emailsuffix') FILTER html %]
51 </td>
52 </tr>
53 <tr>
54 <th align="right"><label for="Bugzilla_password">Password:</label></th>
55 <td>
56 <input type="password" size="35" id="Bugzilla_password" name="Bugzilla_password">
57 </td>
58 </tr>
59
60 [% IF Param('rememberlogin') == 'defaulton' ||
61 Param('rememberlogin') == 'defaultoff' %]
62 <tr>
63 <th>&nbsp;</th>
64 <td>
65 <input type="checkbox" id="Bugzilla_remember" name="Bugzilla_remember" value="on"
66 [%+ "checked" IF Param('rememberlogin') == "defaulton" %]>
67 <label for="Bugzilla_remember">Remember my Login</label>
68 </td>
69 </tr>
70 [% END %]
71
72 <tr>
73 <th>&nbsp;</th>
74 <td>
75 <input type="checkbox" id="Bugzilla_restrictlogin" name="Bugzilla_restrictlogin"
76 checked="checked">
77 <label for="Bugzilla_restrictlogin">Restrict this session to this IP address
78 (using this option improves security)</label>
79 </td>
80 </tr>
81 </table>
82
83 [% PROCESS "global/hidden-fields.html.tmpl"
84 exclude="^Bugzilla_(login|password|restrictlogin)$" %]
85
86 <input type="submit" name="GoAheadAndLogIn" value="Log in" id="log_in">
87
88 <p>
89 (Note: you should make sure cookies are enabled for this site.
90 Otherwise, you will be required to log in frequently.)
91 </p>
92 </form>
93
94 [%# Allow the user to create a new account, or request a token to change
95 # their password, assuming that our auth method allows that.
96 #%]
97
98 [% IF Param("createemailregexp") && user.authorizer.user_can_create_account %]
99 <hr>
100
101 <p>
102 If you don't have a [% terms.Bugzilla %] account, you can
103 <a href="createaccount.cgi">create a new account</a>.
104 </p>
105 [% END %]
106
107 [% IF user.authorizer.can_change_password %]
108 <hr>
109
110 <a name="forgot"></a>
111 <form method="get" action="token.cgi">
112 <input type="hidden" name="a" value="reqpw">
113 If you have an account, but have forgotten your password,
114 enter your login name below and submit a request
115 to change your password.<br>
116 <input size="35" name="loginname">
117 <input type="submit" id="request" value="Reset Password">
118 </form>
119 [% END %]
120
121 [% PROCESS global/footer.html.tmpl %]

  ViewVC Help
Powered by ViewVC 1.1.30