Skip to content

Commit

Permalink
Changed Authentication to use structs directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjohnsonaz committed Aug 8, 2022
1 parent 7b3af2c commit 940e231
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/basic_auth.tmpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
type Authentication struct {
*BasicAuth
BasicAuth
}

type BasicAuth struct {
Expand All @@ -24,7 +24,7 @@ func DecodeAuth(header string) Authentication {
if strings.HasPrefix(header, "Basic ") {
basicAuth, err := DecodeBasicAuth(header)
if err == nil {
authentication.BasicAuth = basicAuth
authentication.BasicAuth = *basicAuth
}
}
return authentication
Expand Down

0 comments on commit 940e231

Please sign in to comment.