summaryrefslogtreecommitdiff
path: root/views/login.pug
blob: 72154f001f1ed583f170e56786e73b1680b4f0e0 (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
//- vim:ts=4:sw=4:
doctype html
html
	head
		include head
		title Login
	body
		include header
		article
			h1 Login
			if flash
				p.error= flash

			if user
				p You're already logged in!
			else
				form(method="post" action="/login")
					input(type="hidden" name="redirect" value=redirect)
					p
						label Name or mail:
							br
							input(type="text" name="username" required)
					p
						label Password:
							br
							input(type="password" name="password" required)
					p
						button(type="submit") Login
				p
					a(href="/forgot-password") Forgot password