Added new modules to help prevent Cross Site Request Forgery
[sdnc/oam.git] / admportal / views / pages / signup.ejs
1 <!DOCTYPE html>
2 <html lang="en">
3   <head>
4     <meta charset="utf-8">
5     <meta http-equiv="X-UA-Compatible" content="IE=edge">
6     <meta name="viewport" content="width=device-width, initial-scale=1">
7     <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
8         <title>AdminPortal</title>
9
10
11     <!-- Bootstrap core CSS -->
12         <% include ../partials/head %>
13
14     <!-- Custom styles for this template -->
15         <link rel="stylesheet" href="/stylesheets/signin.css">
16
17   </head>
18
19   <body>
20
21 <% if ( typeof result != 'undefined' ) {
22         if (result.code.length > 0) {
23             if ( result.code == 'success' ) { %>
24                 <div class='alert alert-success' role='alert'><%=result.msg %></div>
25             <% } else { %>
26                 <div class='alert alert-danger' role='danger'><%=result.msg %></div>
27             <% } %>
28         <% } %>
29 <% } %>
30
31     <div class="container">
32
33       <form class="form-signin" method="POST" action="/formSignUp">
34         <h3 class="form-signin-heading">AdminPortal Signup</h3>
35
36                                 <input type="hidden" name="_csrf" value="<%= csrfToken %>" />
37         <input type="email" name="nf_email" id="nf_email" class="form-control" placeholder="Email Address" required>
38         <input type="password" name="nf_password" id="nf_password" class="form-control" placeholder="Password" required>
39
40         <button class="btn btn-lg btn-primary btn-block" type="submit">Submit</button>
41       </form>
42
43     </div> <!-- /container -->
44
45   </body>
46 </html>