auth
2014-12-14
Child:d442523df640
auth/authd/templates/simple.gotmpl
Add authd. Start adding our server implementation. Right now, it's very proof-of-concept stage and will almost certainly be entirely rewritten, but it gets a server up and running.
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/authd/templates/simple.gotmpl Sun Dec 14 12:10:57 2014 -0500 1.3 @@ -0,0 +1,17 @@ 1.4 +{{ define "login" }}<html> 1.5 + <head> 1.6 + <title>Log in</title> 1.7 + </head> 1.8 + <body> 1.9 + <h1>Please log into your account</h1>{{ if .errors }} 1.10 + <h2>Errors:</h2> 1.11 + <ul>{{ range .errors }} 1.12 + <li>{{ . }}</li> 1.13 + </ul>{{ end }}{{ end }} 1.14 + <form method="POST"> 1.15 + <p>Username: <input type="text" name="login"></p> 1.16 + <p>Password: <input type="password" name="passphrase"></p> 1.17 + <p><input type="submit"></p> 1.18 + </form> 1.19 + </body> 1.20 +</html>{{ end }}