blob: 7db797270adfaeffcfead7ea29ff25bb989a2fc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Register</title>
<link rel="stylesheet" href="{{.Paths.Assets}}/css/style.css">
</head>
<body>
<div class="container form-container">
<h2>Create Account</h2>
<form id="register-form" action="{{.Paths.Register}}" method="post">
<input type="hidden" name="gorilla.csrf.Token" value="{{.CSRFToken}}">
<div class="form-group">
<label for="username">Username</label>
<input type="text" id="username" name="username" required>
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" id="password" name="password" required>
</div>
<div class="form-group">
<label for="confirm_password">Confirm Password</label>
<input type="password" id="confirm_password" name="confirm_password" required>
</div>
<button type="submit" class="btn-success">Register</button>
</form>
<p class="error">
{{if .Error}}
{{.Error}}
{{end}}
</p>
<div class="form-link">
<a href="{{.Paths.Login}}">Already have an account? Login</a>
</div>
</div>
<script src="{{.Paths.Assets}}/js/auth.js"></script>
</body>
</html>
|