Skip to content

Commit b1080c5

Browse files
committed
Commit many things.
- Implementation of many other authboss modules - Debug logging via flags - OAuth2 config via files - Re-use the authboss data mechanism for our own rendering
1 parent b40f1c0 commit b1080c5

14 files changed

+469
-322
lines changed

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,7 @@ _testmain.go
2525

2626

2727
.idea/
28-
*.iml
28+
*.iml
29+
30+
oauth2.toml
31+
authboss-sample

ab_views/html-templates/register.tpl

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<form action="{{mountpathed "register"}}" method="post">
2+
{{with .errors}}{{with (index . "")}}{{range .}}<span>{{.}}</span><br />{{end}}{{end}}{{end -}}
3+
<label for="name">Name:</label>
4+
<input name="name" type="text" value="{{with .preserve}}{{with .name}}{{.}}{{end}}{{end}}" placeholder="Name" /><br />
5+
{{with .errors}}{{range .name}}<span>{{.}}</span><br />{{end}}{{end -}}
6+
<label for="email">E-mail:</label>
7+
<input name="email" type="text" value="{{with .preserve}}{{with .email}}{{.}}{{end}}{{end}}" placeholder="E-mail" /><br />
8+
{{with .errors}}{{range .email}}<span>{{.}}</span><br />{{end}}{{end -}}
9+
<label for="password">Password:</label>
10+
<input name="password" type="password" placeholder="Password" /><br />
11+
{{with .errors}}{{range .password}}<span>{{.}}</span><br />{{end}}{{end -}}
12+
<label for="confirm_password">Confirm Password:</label>
13+
<input name="confirm_password" type="password" placeholder="Confirm Password" /><br />
14+
{{with .errors}}{{range .confirm_password}}<span>{{.}}</span><br />{{end}}{{end -}}
15+
<input type="submit" value="Register"><br />
16+
<a href="/">Cancel</a>
17+
18+
{{with .csrf_token}}<input type="hidden" name="csrf_token" value="{{.}}" />{{end}}
19+
</form>

ab_views/login.html.tpl

-38
This file was deleted.

ab_views/recover.html.tpl

-32
This file was deleted.

ab_views/recover_complete.html.tpl

-31
This file was deleted.

ab_views/register.html.tpl

-35
This file was deleted.

0 commit comments

Comments
 (0)