Skip to content

Commit

Permalink
Commit many things.
Browse files Browse the repository at this point in the history
- Implementation of many other authboss modules
- Debug logging via flags
- OAuth2 config via files
- Re-use the authboss data mechanism for our own rendering
  • Loading branch information
aarondl committed May 9, 2018
1 parent b40f1c0 commit b1080c5
Show file tree
Hide file tree
Showing 14 changed files with 469 additions and 322 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ _testmain.go


.idea/
*.iml
*.iml

oauth2.toml
authboss-sample
19 changes: 19 additions & 0 deletions ab_views/html-templates/register.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<form action="{{mountpathed "register"}}" method="post">
{{with .errors}}{{with (index . "")}}{{range .}}<span>{{.}}</span><br />{{end}}{{end}}{{end -}}
<label for="name">Name:</label>
<input name="name" type="text" value="{{with .preserve}}{{with .name}}{{.}}{{end}}{{end}}" placeholder="Name" /><br />
{{with .errors}}{{range .name}}<span>{{.}}</span><br />{{end}}{{end -}}
<label for="email">E-mail:</label>
<input name="email" type="text" value="{{with .preserve}}{{with .email}}{{.}}{{end}}{{end}}" placeholder="E-mail" /><br />
{{with .errors}}{{range .email}}<span>{{.}}</span><br />{{end}}{{end -}}
<label for="password">Password:</label>
<input name="password" type="password" placeholder="Password" /><br />
{{with .errors}}{{range .password}}<span>{{.}}</span><br />{{end}}{{end -}}
<label for="confirm_password">Confirm Password:</label>
<input name="confirm_password" type="password" placeholder="Confirm Password" /><br />
{{with .errors}}{{range .confirm_password}}<span>{{.}}</span><br />{{end}}{{end -}}
<input type="submit" value="Register"><br />
<a href="/">Cancel</a>

{{with .csrf_token}}<input type="hidden" name="csrf_token" value="{{.}}" />{{end}}
</form>
38 changes: 0 additions & 38 deletions ab_views/login.html.tpl

This file was deleted.

32 changes: 0 additions & 32 deletions ab_views/recover.html.tpl

This file was deleted.

31 changes: 0 additions & 31 deletions ab_views/recover_complete.html.tpl

This file was deleted.

35 changes: 0 additions & 35 deletions ab_views/register.html.tpl

This file was deleted.

Loading

0 comments on commit b1080c5

Please sign in to comment.