Added 'altcha' captcha system for account and channel creation.
This commit is contained in:
parent
60801f0dc2
commit
e0f53df176
20 changed files with 326 additions and 55 deletions
|
|
@ -120,7 +120,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.-->
|
|||
</body>
|
||||
<footer>
|
||||
<%- include('partial/scripts', {user}); %>
|
||||
<script src="/lib/socket.io/socket.io.min.js"></script>
|
||||
<script src="/socket.io/socket.io.min.js"></script>
|
||||
<script src="/js/channel/commandPreprocessor.js"></script>
|
||||
<script src="/js/channel/chatPostprocessor.js"></script>
|
||||
<script src="/js/channel/chat.js"></script>
|
||||
|
|
|
|||
|
|
@ -18,21 +18,25 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.-->
|
|||
<head>
|
||||
<%- include('partial/styles', {instance, user}); %>
|
||||
<link rel="stylesheet" type="text/css" href="/css/newChannel.css">
|
||||
<link rel="stylesheet" type="text/css" href="/lib/altcha/altcha.css">
|
||||
<title><%= instance %> - New Channel</title>
|
||||
</head>
|
||||
<body>
|
||||
<%- include('partial/navbar', {user}); %>
|
||||
<form action="javascript:">
|
||||
<label>Channel Name:</label>
|
||||
<input id="register-channel-name" placeholder="Required">
|
||||
<input class="register-prompt" id="register-channel-name" placeholder="Required">
|
||||
<label>Description:</label>
|
||||
<input id="register-description" placeholder="Required">
|
||||
<input class="register-prompt" id="register-description" placeholder="Required">
|
||||
<label>Thumbnail:</label>
|
||||
<input id="register-thumbnail" placeholder="Required">
|
||||
<input class="register-prompt" id="register-thumbnail" placeholder="Required">
|
||||
<altcha-widget floating challengejson="<%= JSON.stringify(challenge) %>"></altcha-widget>
|
||||
<button id="register-button" class='positive-button'>Register</button>
|
||||
</form>
|
||||
</body>
|
||||
<footer>
|
||||
<%- include('partial/scripts', {user}); %>
|
||||
<script src="js/newChannel.js"></script>
|
||||
<script src="/lib/altcha/altcha.js" type="module"></script>
|
||||
</footer>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -19,23 +19,27 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.-->
|
|||
<head>
|
||||
<%- include('partial/styles', {instance, user}); %>
|
||||
<link rel="stylesheet" type="text/css" href="/css/register.css">
|
||||
<link rel="stylesheet" type="text/css" href="/lib/altcha/altcha.css">
|
||||
<title><%= instance %> - Account Registration</title>
|
||||
</head>
|
||||
<body>
|
||||
<%- include('partial/navbar', {user}); %>
|
||||
<form action="javascript:">
|
||||
<label>Username:</label>
|
||||
<input id="register-username" placeholder="Required">
|
||||
<input class="register-prompt" id="register-username" placeholder="Required">
|
||||
<label>Password:</label>
|
||||
<input id="register-password" placeholder="Required" type="password">
|
||||
<input class="register-prompt" id="register-password" placeholder="Required" type="password">
|
||||
<label>Confirm Password:</label>
|
||||
<input id="register-password-confirm" placeholder="Required" type="password">
|
||||
<input class="register-prompt" id="register-password-confirm" placeholder="Required" type="password">
|
||||
<label>Account Recovery Email:</label>
|
||||
<input id="register-email" placeholder="Optional">
|
||||
<input class="register-prompt" id="register-email" placeholder="Optional">
|
||||
<altcha-widget floating challengejson="<%= JSON.stringify(challenge) %>"></altcha-widget>
|
||||
<button id="register-button" class='positive-button'>Register</button>
|
||||
</form>
|
||||
</body>
|
||||
<footer>
|
||||
<%- include('partial/scripts', {user}); %>
|
||||
<script src="js/register.js"></script>
|
||||
<script src="/js/register.js"></script>
|
||||
<script src="/lib/altcha/altcha.js" type="module"></script>
|
||||
</footer>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue