Mercurial > prosody-modules
comparison mod_invites_register_web/html/register_success.html @ 4093:a2116f5a7c8f
mod_invites_register_web: New module to allow web registration with an invite token
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 11 Sep 2020 13:51:54 +0100 |
parents | |
children | 3a03ae9a0882 |
comparison
equal
deleted
inserted
replaced
4092:2b6918714792 | 4093:a2116f5a7c8f |
---|---|
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <meta charset="utf-8"> | |
5 <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
6 <title>{site_name}</title> | |
7 <link rel="stylesheet" href="/share/bootstrap4/css/bootstrap.min.css"> | |
8 <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> | |
9 <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> | |
10 <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> | |
11 <link rel="manifest" href="/site.webmanifest"> | |
12 <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"> | |
13 <meta name="msapplication-TileColor" content="#fbd308"> | |
14 <meta name="theme-color" content="#fbd308"> | |
15 | |
16 <script> | |
17 function toggle_password(e) { | |
18 var button = e.target; | |
19 var input = button.parentNode.parentNode.querySelector("input"); | |
20 switch(input.attributes.type.value) { | |
21 case "password": | |
22 input.attributes.type.value = "text"; | |
23 button.innerText = "Hide"; | |
24 break; | |
25 case "text": | |
26 input.attributes.type.value = "password"; | |
27 button.innerText = "Show"; | |
28 break; | |
29 } | |
30 } | |
31 </script> | |
32 </head> | |
33 <body> | |
34 <div id="background" class="fixed-top overflow-hidden" aria-role="none presentation"></div> | |
35 <div id="form" class="container col-md-8 col-md-offset-2 col-sm-8 cold-sm-offset-2 col-lg-6 col-lg-offset-3 mt-2 mt-md-5"> | |
36 <div class="card rounded-lg shadow"> | |
37 <h1 class="card-header rounded-lg rounded-lg"> | |
38 {site_name}<br/> | |
39 </h1> | |
40 <div class="card-body"> | |
41 <h5 class="card-title">Congratulations!</h5> | |
42 | |
43 <p>You have created an account on {site_name}.</p> | |
44 | |
45 <p>To start chatting, you need to enter your new account | |
46 credentials into your chosen XMPP software.</p> | |
47 | |
48 <p>As a final reminder, your account details are shown below:</p> | |
49 | |
50 <form class="account-details col-12 col-lg-6 mx-auto"> | |
51 <div class="form-group form-row"> | |
52 <label for="user" class="col-md-4 col-lg-12 col-form-label">Chat address (JID):</label> | |
53 <div class="col-md-8 col-lg-12"> | |
54 <input type="text" class="form-control-plaintext" readonly value="{username}@{domain}"> | |
55 </div> | |
56 </div> | |
57 {password& | |
58 <div class="form-group form-row"> | |
59 <label for="password" class="col-md-4 col-lg-12 col-form-label">Password:</label> | |
60 <div class="col-md-8 col-lg-12"> | |
61 <div class="input-group"> | |
62 <input type="password" readonly class="form-control" value="{password}"> | |
63 <div class="input-group-append"> | |
64 <button class="btn btn-outline-secondary" type="button" onclick="toggle_password(event)">Show</button> | |
65 </div> | |
66 </div> | |
67 </div> | |
68 </div> | |
69 } | |
70 </form> | |
71 | |
72 <p>Your password is stored encrypted on the server and will not be accessible after you close | |
73 this page. Keep it safe and never share it with anyone.</p> | |
74 </div> | |
75 </div> | |
76 </div> | |
77 <script src="/share/jquery/jquery.min.js"></script> | |
78 <script src="/share/bootstrap4/js/bootstrap.min.js"></script> | |
79 </body> | |
80 </html> |