Add a user registration flow. Registration can be open for all, or limited to issued...
[pithos] / war / register.jsp
1 <%--
2
3 Copyright 2010 Electronic Business Systems Ltd.
4
5 This file is part of GSS.
6
7 GSS is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 GSS is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GSS.  If not, see <http://www.gnu.org/licenses/>.
19
20 --%>
21 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
22 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
23
24 <%@page import="gr.ebs.gss.server.configuration.GSSConfigurationFactory"%>
25 <%@page import="java.net.URLDecoder"%>
26 <html>
27 <head>
28 <title><%= GSSConfigurationFactory.getConfiguration().getString("serviceName") %> Registration</title>
29 <link href="/pithos/gss.css" rel="stylesheet" type="text/css">
30 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
31 </head>
32 <body>
33
34 Welcome to <%= GSSConfigurationFactory.getConfiguration().getString("serviceName") %>.
35 You may sign up for the service by filling and submitting the following form. All fields are required.
36 <center>
37 <form method="post" action="/pithos/register">
38 <%= request.getParameter("error") != null? URLDecoder.decode(request.getParameter("error"), "UTF-8"): "" %>
39     <table>
40         <tr>
41             <td>Name:</td>
42             <td><input type="text" name="name" title="Enter a name" value="<%= request.getParameter("name") != null? request.getParameter("name"): ""  %>"/></td>
43         </tr>
44         <tr>
45             <td>E-Mail:</td>
46             <td><input type="text" name="email" title="Enter an e-mail address" value="<%= request.getParameter("email") != null? request.getParameter("email"): "" %>"/></td>
47         </tr>
48         <tr>
49             <td>Username:</td>
50             <td><input type="text" name="username" title="Enter a username" value="<%= request.getParameter("username") != null? request.getParameter("username"): "" %>"/></td>
51         </tr>
52         <tr>
53             <td>Password:</td>
54             <td><input type="password" name="password" title="Enter a password"/></td>
55         </tr>
56         <tr>
57             <td>Confirm Password:</td>
58             <td><input type="password" name="password2" title="Enter the password again to confirm"/></td>
59         </tr>
60         <tr>
61             <td colspan="2">
62                 <input type="checkbox" name="accept" title="Accept terms and conditions"/>
63                 I have read and understood the <a href='/terms' target='_blank'>
64                 Terms and Conditions</a> of the Service and agree to abide by them
65             </td>
66         </tr>
67         <tr>
68             <td colspan="2" align="center">
69                 <input type="submit" value="Sign Up" />
70             </td>
71         </tr>
72     </table>
73 </form>
74 </center>
75
76 </body>
77 </html>