diff --git a/examples/server.go b/examples/server.go index 8bfff0f..e389f2e 100644 --- a/examples/server.go +++ b/examples/server.go @@ -8,14 +8,14 @@ import ( ) var ( - backend goauth.GobFileAuthBackend - aaa goauth.Authorizer + backend httpauth.GobFileAuthBackend + aaa httpauth.Authorizer ) func main() { - backend = goauth.NewGobFileAuthBackend("auth.gob") - aaa = goauth.NewAuthorizer(backend, []byte("cookie-encryption-key")) + backend = httpauth.NewGobFileAuthBackend("auth.gob") + aaa = httpauth.NewAuthorizer(backend, []byte("cookie-encryption-key")) // set up routers and route handlers r := mux.NewRouter() @@ -36,7 +36,7 @@ func getLogin(rw http.ResponseWriter, req *http.Request) {
Messages: %v
Your email is %v. Logout