feat: Add invite token-based user registration and an admin interface for token management.
This commit is contained in:
28
views/register.html
Normal file
28
views/register.html
Normal file
@@ -0,0 +1,28 @@
|
||||
<!doctype f0ck>
|
||||
<html theme="amoled">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<title>register</title>
|
||||
<link href="/s/css/f0ck.css" rel="stylesheet" />
|
||||
</head>
|
||||
|
||||
<body type="login">
|
||||
<form class="login-form" method="post" action="/register">
|
||||
<h2 style="text-align: center; margin-bottom: 20px;">Register</h2>
|
||||
@if(typeof error !== 'undefined')
|
||||
<div style="color: #ff6b6b; margin-bottom: 10px; text-align: center;">{{ error }}</div>
|
||||
@endif
|
||||
<input type="text" name="username" placeholder="username" autocomplete="off" required />
|
||||
<input type="password" name="password" placeholder="password" autocomplete="off" required />
|
||||
<input type="password" name="password_confirm" placeholder="confirm password" autocomplete="off" required />
|
||||
<input type="text" name="token" placeholder="invite token" autocomplete="off" required />
|
||||
<button type="submit">Create Account</button>
|
||||
<div style="margin-top: 15px; text-align: center;">
|
||||
<a href="/login" style="color: var(--accent); text-decoration: none;">Back to Login</a>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user